From f3480ab940372dcd4747d00c5f66bb70a70d693f Mon Sep 17 00:00:00 2001 From: Sergey Date: Tue, 3 Mar 2015 22:36:03 +0100 Subject: [PATCH] snmp plugin: add hostname to "csnmp_value_list_to_value" error message Fixes #952 --- src/snmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } } -- 2.30.2