projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
527efe8
)
snmp plugin: add hostname to "csnmp_value_list_to_value" error message
author
Sergey
<a_s_y@sama.ru>
Tue, 3 Mar 2015 21:36:03 +0000
(22:36 +0100)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Tue, 3 Mar 2015 21:36:03 +0000
(22:36 +0100)
Fixes #952
src/snmp.c
patch
|
blob
|
history
diff --git
a/src/snmp.c
b/src/snmp.c
index
6a35c26
..
cb2bb36
100644
(file)
--- a/
src/snmp.c
+++ b/
src/snmp.c
@@
-993,7
+993,8
@@
static value_t csnmp_value_list_to_value (struct variable_list *vl, int type,
status = parse_value (string, &ret, type);
if (status != 0)
{
- ERROR ("snmp plugin: csnmp_value_list_to_value: Parsing string as %s failed: %s",
+ ERROR ("snmp plugin: host %s: csnmp_value_list_to_value: Parsing string as %s failed: %s",
+ (host_name != NULL) ? host_name : "UNKNOWN",
DS_TYPE_TO_STRING (type), string);
}
}