diff options
author | Stef Walter <stef@memberwebs.com> | 2008-03-02 05:28:32 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-03-02 05:28:32 +0000 |
commit | 8d5e7c68825a9adc6baba61b1d8d3bcb6de99f24 (patch) | |
tree | fff0718926a98979186b0f9f91d8df225f30615f | |
parent | 9a78f86f773cbf34e29ec51fc06e3f04072c88d0 (diff) |
More debug logging.
-rw-r--r-- | daemon/poll-engine.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/daemon/poll-engine.c b/daemon/poll-engine.c index 6130a89..58c9dce 100644 --- a/daemon/poll-engine.c +++ b/daemon/poll-engine.c @@ -285,6 +285,7 @@ query_response (int request, int code, struct snmp_value *value, void *arg) * start search again from the base. */ if (!matched && item->query_last != 0) { + log_debug ("last table index did not match, starting from zero"); item->query_last = 0; query_request (item, 1); @@ -293,6 +294,7 @@ query_response (int request, int code, struct snmp_value *value, void *arg) * perhaps its a one based table */ } else if (!found && item->query_value == 0) { + log_debug ("no zero index in table, trying index one"); item->query_last = 0; query_request (item, 0); @@ -302,7 +304,8 @@ query_response (int request, int code, struct snmp_value *value, void *arg) */ } else if (!found) { item->query_last = 0; - log_warn ("couldn't find match for query value: %s", item->query_match); + log_warn ("couldn't find match for query value: %s", + item->query_match ? item->query_match : ""); complete_request (item, SNMP_ERR_NOSUCHNAME); @@ -310,6 +313,7 @@ query_response (int request, int code, struct snmp_value *value, void *arg) * Found a value but didn't match, so try next one. */ } else if (!matched) { + log_debug ("table index %d did not match, trying next", item->query_value); item->query_last = 0; query_request (item, 0); @@ -319,6 +323,9 @@ query_response (int request, int code, struct snmp_value *value, void *arg) */ } else { + log_debug ("table index %d matched query value: %s", + item->query_value, item->query_match ? item->query_match : ""); + /* Build up the OID */ oid = item->field_oid; ASSERT (oid.len < ASN_MAXOIDLEN); |