[collectd-changes] collectd, the system statistics collection daemon: Changes to 'collectd-4.7'
octo at verplant.org
Sun Aug 16 11:12:46 CEST 2009
src/utils_cache.c | 22 +++++++++++++++++-----
1 files changed, 17 insertions(+), 5 deletions(-)
Author: AndrÃ©s J. DÃaz <ajdiaz at connectical.com>
Date: Tue Aug 11 21:57:34 2009 +0200
src/utils_cache.c: Update GETVAL output when missing state.
I think that I've found a bug when use unixsock plugin. The problem is
releate with missing state, when no value is received by daemon for a
while in the cache is marked as MISSING, but the last value is still
showing even when machine is not reporting in a GETVAL and LISTVAL
commands. Some utlities like collectd-nagios does not work correctly,
and report an OKAY value when host is not reporting from a long time.
I attach a patch with check the state value of an cache entry in
uc_get_names and in uc_get_rate_by_name. This patch works for me, but
it's not very tested yet, and I not very sure about if it's a good way
to check the problem. The patch is tested on 4.7.2 release version.
BTW a GETSTATE command will be an useful feature too :P
Signed-off-by: Florian Forster <octo at huhu.verplant.org>
More information about the collectd-changes