Why don't you just write a simple script to do it? There probably is some package that can do it but my guess is that it will be more work to setup and configure than to just do a script since the task is fairly simple.
eg. pingstats
Code:
#!/bin/bash
HTMLPATH="/var/www/site/stats.html"
NODES=( 192.168.2.1 192.168.2.2 192.168.2.3 )
while true; do
TIMES=()
for ip in ${NODES[@]}; do
TIMES[${#TIMES[@]}]=$(ping -nc 1 ${ip}|grep "time="|awk -F= '{print $4}'|awk '{print $1}')
done
TS=`date`
cat >$HTMLPATH <<-EOF
<HTML><HEAD>...blah blah</HEAD>
<BODY>
This is my heading and stuff like that, whatever...
Up to the table rows
${TS}
<TABLE>
EOF
for ((n=0; n < ${#NODES[@]}; n++)); do
echo "<ROW><COL>${NODES[$n]}</COL><COL>${TIMES[$n]}</COL></ROW>" >> $HTMLPATH
done
cat >>$HTMLPATH <<-EOF
</ROW></TABLE>
Stuff after the table, whatever...
<HTML>
EOF
sleep 10
done
This simply loops every 10 seconds doing the pings and writing a new html file. You plug in your IPs. You can alter the html to suit, and change the ping interval.
Put it in your /etc/local.rc and it will start at boot.
Run it in the background like this,
pingstats &
Anyway, I just threw that together in a few minutes as an example.
This one works though - I just tested it.
Bookmarks