summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 527efe8)
raw | patch | inline | side by side (parent: 527efe8)
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 6a35c26b35a8a16c6f2b6ccc732cc5d83c36a597..cb2bb36d7bf7add534b4530af9697e879afa7a3d 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
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);
}
}