projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dca18e
)
Add a warning when trying to activate bulktransferts on an SNMP v1 host
author
Benoit Plessis
<benoit.plessis@powerboutique.com>
Fri, 4 Oct 2019 09:06:15 +0000
(11:06 +0200)
committer
Benoit Plessis
<benoit.plessis@powerboutique.com>
Fri, 4 Oct 2019 09:06:15 +0000
(11:06 +0200)
src/snmp.c
patch
|
blob
|
history
diff --git
a/src/snmp.c
b/src/snmp.c
index
5002f7f
..
6b7b1ae
100644
(file)
--- a/
src/snmp.c
+++ b/
src/snmp.c
@@
-821,6
+821,9
@@
static int csnmp_config_add_host(oconfig_item_t *ci) {
status = -1;
break;
}
+ if (hd->bulk_size > 0 && hd->version < 2) {
+ WARNING("snmp plugin: Bulk transferts is only available for snmp v2 and later, host '%s' is configured as version '%d'", hd->name, hd->version );
+ }
if (hd->version == 3) {
if (hd->username == NULL) {
WARNING("snmp plugin: `Username' not given for host `%s'", hd->name);