summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1c67d71)
raw | patch | inline | side by side (parent: 1c67d71)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 15 Sep 2015 16:29:34 +0000 (18:29 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 13 Oct 2015 07:35:51 +0000 (09:35 +0200) |
src/snmp.c | patch | blob | history |
diff --git a/src/snmp.c b/src/snmp.c
index 18c52077fc0798079d9ba537fb1283f7fb460d70..265b622506525484f0e23bb0adbb9011e7b24509 100644 (file)
--- 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;
if (host->interval == 0)
host->interval = plugin_get_interval ();
- time_start = cdtime ();
-
if (host->sess_handle == NULL)
csnmp_host_open_session (host);
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);