From 22d5f76d3379a5f61873c52363116ee4ba67afa4 Mon Sep 17 00:00:00 2001 From: Sergey Date: Tue, 24 Feb 2015 22:13:00 +0100 Subject: [PATCH] snmp plugin: add hostname to "csnmp_instance_list_add" error message Fixes #939 --- src/snmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/snmp.c b/src/snmp.c index ab596385..6a35c26b 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -1546,7 +1546,8 @@ static int csnmp_read_table (host_definition_t *host, data_definition_t *data) if (csnmp_instance_list_add (&instance_list_head, &instance_list_tail, res, host, data) != 0) { - ERROR ("snmp plugin: csnmp_instance_list_add failed."); + ERROR ("snmp plugin: host %s: csnmp_instance_list_add failed.", + host->name); status = -1; break; } -- 2.30.2