#630682 collectd: ping plugin ignores Interval in case of warnings

Package:
collectd
Source:
collectd
Description:
statistics collection and monitoring daemon
Submitter:
Bernd Zeimetz
Date:
2012-11-22 10:09:07 UTC
Severity:
important
#630682#5
Date:
2011-06-16 09:29:44 UTC
From:
To:
Hi,

whenever the ping plugin throws a WARNING and hits 'continue' in the
main while loop, the Interval setting will be ignored as
pthread_cond_timedwait is only executed when the whole loop body run
trough successful. So when things like '"ping plugin: Cannot find host'
happen, my syslog will be spammed...

Please fix :)

Cheers,

Bernd

#630682#10
Date:
2012-11-22 09:58:03 UTC
From:
To:
tags 630682 +moreinfo
thanks

Hi,

Hrm, can you provide an example for that? From looking at the code, this
should not happen because 'continue' is only used in the inner iterator
loop. The main while loop does not use 'continue' at all but only uses
'break' to shutdown the ping-thread completely.

Cheers,
Sebastian