summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-04-05 03:38:18 +0000
committerStef Walter <stef@memberwebs.com>2006-04-05 03:38:18 +0000
commitd3e86b52b596480a07978a12462c1fe97df16c77 (patch)
treefb60cb2f166b6970b67e556202be2cfa97f5097a /daemon
parent5268cec90ff428e2588103b6873b4e06e2cc5506 (diff)
Support for printing out textual MIB names.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/config.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/daemon/config.c b/daemon/config.c
index d95de8a..89ac6f9 100644
--- a/daemon/config.c
+++ b/daemon/config.c
@@ -260,7 +260,9 @@ parse_item(const char* field, char* uri, config_ctx *ctx)
ritem->vtype = VALUE_UNSET;
/* And parse the OID */
- if(mib_parse(path, &(ritem->snmpfield)) == -1)
+ ritem->snmpfield.syntax = SNMP_SYNTAX_NULL;
+ memset(&(ritem->snmpfield.v), 0, sizeof(ritem->snmpfield.v));
+ if(mib_parse(path, &(ritem->snmpfield.var)) == -1)
errx(2, "%s: invalid MIB: %s", ctx->confname, path);
rb_messagex(LOG_DEBUG, "parsed MIB into oid: %s -> %s", path,