summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6bbd200)
raw | patch | inline | side by side (parent: 6bbd200)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 25 Apr 2010 13:32:50 +0000 (15:32 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 25 Apr 2010 13:32:50 +0000 (15:32 +0200) |
Apparently the parser used by nagios is dumb as bread. Thanks to Lao Wai
for pointing this out. For more information, see:
<http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN201>
for pointing this out. For more information, see:
<http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN201>
src/collectd-nagios.c | patch | blob | history |
diff --git a/src/collectd-nagios.c b/src/collectd-nagios.c
index 29e34a4ce5a413c4af48037aade685fb1616b267..45162bd3de607170e3b34399e078b851fd4a58bd 100644 (file)
--- a/src/collectd-nagios.c
+++ b/src/collectd-nagios.c
{
printf (" |");
for (i = 0; i < values_num; i++)
- printf (" %s=%g;;;;", values_names[i], values[i]);
+ printf (" %s=%f;;;;", values_names[i], values[i]);
}
printf ("\n");
printf ("%s: %g average |", status_str, average);
for (i = 0; i < values_num; i++)
- printf (" %s=%g;;;;", values_names[i], values[i]);
+ printf (" %s=%f;;;;", values_names[i], values[i]);
printf ("\n");
return (status_code);
printf ("%s: %g sum |", status_str, total);
for (i = 0; i < values_num; i++)
- printf (" %s=%g;;;;", values_names[i], values[i]);
+ printf (" %s=%f;;;;", values_names[i], values[i]);
printf ("\n");
return (status_code);