Add heartbeatd

This commit is contained in:
Neale Pickett 2009-10-07 17:32:36 -06:00
parent b5c517e2c0
commit f666930688
3 changed files with 20 additions and 0 deletions

8
heartbeatd/in.heartbeatd Executable file
View File

@ -0,0 +1,8 @@
#! /bin/sh
case "$REMOTEADDR" in
10.0.0.[2-254])
touch /var/lib/pollster/$REMOTEADDR
;;
esac

9
heartbeatd/run.heartbeat Executable file
View File

@ -0,0 +1,9 @@
#! /bin/sh
# Busybox netcat doesn't support UDP unless you compile in desktop mode.
# No problem, traceroute can send a UDP packet too.
while true; do
# Apparently traceroute adds 1 to the base port (-p)
traceroute -m 2 -q 1 -p 8 10.0.0.1
sleep 10
done

3
heartbeatd/run.heartbeatd Executable file
View File

@ -0,0 +1,3 @@
#! /bin/sh
exec udpsvd 0 9 /usr/sbin/in.heartbeatd