Comment 0 for bug 67868

Revision history for this message
In , Roberto Lumbreras (rover-lander) wrote : watchdog: ping doesn't work

Package: watchdog
Version: 4.0-5

I tried the ping in the /etc/watchdog.conf with -q (no act) and -v
(be verbose) and it always logs "network is unreachable":

Jan 28 20:32:58 bicho watchdog[1458]: starting daemon (4.0): int=10s sync=no soft=no mla=5 ping=192.168.1.2 file=none test=none repair=none alive=/dev/watchdog temp=none to=root no_act=yes
...
Jan 28 20:34:43 bicho watchdog[1458]: still alive after 70 seconds = 7 interval(s)
Jan 28 20:34:43 bicho watchdog[1458]: current load is 0 0 0
Jan 28 20:34:43 bicho watchdog[1458]: sendto gave errno = 106
Jan 28 20:34:43 bicho last message repeated 2 times
Jan 28 20:34:43 bicho watchdog[1458]: network is unreachable (target: 192.168.1.2)
Jan 28 20:34:58 bicho watchdog[1458]: still alive after 80 seconds = 8 interval(s)
Jan 28 20:34:58 bicho watchdog[1458]: current load is 0 0 0
Jan 28 20:34:58 bicho watchdog[1458]: sendto gave errno = 106
Jan 28 20:34:58 bicho last message repeated 2 times
Jan 28 20:34:58 bicho watchdog[1458]: network is unreachable (target: 192.168.1.2)
..

Of course I can ping 192.168.1.2 without any problems and network
is not unreachable.

If watchdog is run without -q option it soft-reboots the box.

The /etc/watchdog.conf...

# grep -v '^#\|^$' /etc/watchdog.conf
ping = 192.168.1.2
max-load-1 = 32
max-load-5 = 29
max-load-15 = 26

And a question: how can I disable the "load average" check? The
watchdog has rebooted my box several times without a lot of load, I
can't say for sure but I think the load checking is not working
very well.

Saludos,
--
Roberto A. Lumbreras Pastor; e-mail: <email address hidden>, <email address hidden>
PGP: id 143BE391; B4 E2 73 BA 63 BF 55 EE FE E8 32 32 69 9E BF 47
Lander Internet; Po Castellana 121, 28046 Madrid; http://www.lander.es
Teléfono 91-556.28.83, 902-363.363 - Fax 91-556.30.01

Please do not look directly into laser with remaining eye.