From: Sergey Date: Tue, 3 Mar 2015 21:36:03 +0000 (+0100) Subject: snmp plugin: add hostname to "csnmp_value_list_to_value" error message X-Git-Tag: collectd-5.5.0~77 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f3480ab940372dcd4747d00c5f66bb70a70d693f;p=collectd.git snmp plugin: add hostname to "csnmp_value_list_to_value" error message Fixes #952 --- diff --git a/src/snmp.c b/src/snmp.c index 6a35c26b..cb2bb36d 100644 --- 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); } }