projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b41606a
)
snmp plugin: added NOTICE when suffix (row of values) is skipped
author
Pavel Rochnyack
<pavel2000@ngs.ru>
Thu, 14 Jun 2018 15:57:14 +0000
(22:57 +0700)
committer
Pavel Rochnyack
<pavel2000@ngs.ru>
Thu, 14 Jun 2018 15:57:14 +0000
(22:57 +0700)
src/snmp.c
patch
|
blob
|
history
diff --git
a/src/snmp.c
b/src/snmp.c
index
63295da
..
f591600
100644
(file)
--- a/
src/snmp.c
+++ b/
src/snmp.c
@@
-1274,6
+1274,8
@@
static int csnmp_dispatch_table(host_definition_t *host,
/* This suffix is missing in the subtree. Indicate this with the
* "suffix_skipped" flag and try the next instance / suffix. */
suffix_skipped = 1;
/* This suffix is missing in the subtree. Indicate this with the
* "suffix_skipped" flag and try the next instance / suffix. */
suffix_skipped = 1;
+ NOTICE(
+ "snmp plugin: suffix skipped, variable not found for HostnameOID.");
}
}
}
}
@@
-1293,6
+1295,8
@@
static int csnmp_dispatch_table(host_definition_t *host,
/* This suffix is missing in the subtree. Indicate this with the
* "suffix_skipped" flag and try the next instance / suffix. */
suffix_skipped = 1;
/* This suffix is missing in the subtree. Indicate this with the
* "suffix_skipped" flag and try the next instance / suffix. */
suffix_skipped = 1;
+ NOTICE(
+ "snmp plugin: suffix skipped, variable not found for Value OID.");
break;
}
} /* for (i = 0; i < columns; i++) */
break;
}
} /* for (i = 0; i < columns; i++) */