summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/config.c
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2014-11-19 10:24:41 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2014-11-19 10:24:41 +0000
commitab6b0a6310e860afadbc777dbe26454a8deea062 (patch)
treecd4ee10b54e0583333970cb2a9794d115e886c40 /usr.sbin/relayd/config.c
parentff01fb2a97a4878f33c682a1e5148449d815102c (diff)
Support exporting relayd statistics via AgentX/snmpd
This should be equivalent to the statistics available via the various relaydctl show commands okay benno@ reyk@
Diffstat (limited to 'usr.sbin/relayd/config.c')
-rw-r--r--usr.sbin/relayd/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/relayd/config.c b/usr.sbin/relayd/config.c
index 9c10e6e54ed..0cdec86bab6 100644
--- a/usr.sbin/relayd/config.c
+++ b/usr.sbin/relayd/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.18 2014/07/11 16:59:38 reyk Exp $ */
+/* $OpenBSD: config.c,v 1.19 2014/11/19 10:24:40 blambert Exp $ */
/*
* Copyright (c) 2011 - 2014 Reyk Floeter <reyk@openbsd.org>
@@ -407,6 +407,7 @@ config_gethost(struct relayd *env, struct imsg *imsg)
SLIST_INIT(&host->children);
TAILQ_INSERT_TAIL(&tb->hosts, host, entry);
+ TAILQ_INSERT_TAIL(&env->sc_hosts, host, globalentry);
DPRINTF("%s: %s %d received host %s for table %s", __func__,
env->sc_ps->ps_title[privsep_process], env->sc_ps->ps_instance,