Package: collectd
Severity: important
Version: 4.10.1-1+squeeze2

Hi,

the ping plugin restarts when sending pings to a host is not allowed by
iptables. Easy to reproduce with:

iptables -I OUTPUT 1 -p icmp -j REJECT
(or DROP instead of REJECT).

A "normal" ping prints:

root@conthink:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted

The ping plugin in collectd restarts:

Jun 16 09:37:38 gw001 collectd[17453]: ping plugin: ping_send failed:
Operation not permitted
Jun 16 09:38:18 gw001 collectd[17453]: ping plugin: The ping thread had
a problem. Restarting it.
Jun 16 09:38:18 gw001 collectd[17453]: read-function of plugin `ping'
failed. Will suspend it for 80 seconds.

... and so on.


Unfortunately liboping doesn't pass the errno in the pingobj, so
distinguishing between the different errors is not that easy.

-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprints: ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to