From 90e16c27f6a12ca66f9a0fe95805eeb69614bfb9 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Tue, 15 Sep 2015 18:29:34 +0200 Subject: [PATCH] snmp: remove warning now redundant with plugin.c --- src/snmp.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/snmp.c b/src/snmp.c index 18c52077..265b6225 100644 --- a/src/snmp.c +++ b/src/snmp.c @@ -1781,8 +1781,6 @@ static int csnmp_read_value (host_definition_t *host, data_definition_t *data) static int csnmp_read_host (user_data_t *ud) { host_definition_t *host; - cdtime_t time_start; - cdtime_t time_end; int status; int success; int i; @@ -1792,8 +1790,6 @@ static int csnmp_read_host (user_data_t *ud) if (host->interval == 0) host->interval = plugin_get_interval (); - time_start = cdtime (); - if (host->sess_handle == NULL) csnmp_host_open_session (host); @@ -1814,16 +1810,6 @@ static int csnmp_read_host (user_data_t *ud) success++; } - time_end = cdtime (); - if ((time_end - time_start) > host->interval) - { - WARNING ("snmp plugin: Host `%s' should be queried every %.3f " - "seconds, but reading all values takes %.3f seconds.", - host->name, - CDTIME_T_TO_DOUBLE (host->interval), - CDTIME_T_TO_DOUBLE (time_end - time_start)); - } - if (success == 0) return (-1); -- 2.11.0