summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 33cef6a)
raw | patch | inline | side by side (parent: 33cef6a)
author | Florian Forster <octo@noris.net> | |
Mon, 14 Jul 2008 17:38:11 +0000 (19:38 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Mon, 14 Jul 2008 17:38:11 +0000 (19:38 +0200) |
src/snmp.c | patch | blob | history |
diff --git a/src/snmp.c b/src/snmp.c
index 182461128e51f4cac23e2d4abe9aa83edcb8014a..460624b4e4a2f8bd9be1b7ca22a6dfa2ec15b192 100644 (file)
--- a/src/snmp.c
+++ b/src/snmp.c
if (vb == NULL)
{
ERROR ("snmp plugin: host %s: Expected one more variable for "
- "the instance..");
+ "the instance..", host->name);
return (-1);
}
if ((time_end - time_start) > host->interval)
{
WARNING ("snmp plugin: Host `%s' should be queried every %i seconds, "
- "but reading all values takes %i seconds.",
- host->name, host->interval, time_end - time_start);
+ "but reading all values takes %u seconds.",
+ host->name, host->interval, (unsigned int) (time_end - time_start));
}
return (0);