Leds do not show with the ip listing as the "img"
function has no default width & height.
I solved it by adding "10,10"
to img calls at:
if (!$hostname && !$lastping) {
print "<td>";img
("images/purplesphere.png",10,10);print "</td>";
}
# ping response, but no hostname
elseif ($lastping > (time() - $redzone) && !
$hostname) {
print "<td>";img
("images/bluesphere.png",10,10);print "</td>";
}
# ping response in "red zone"
elseif ((time() - $redzone) > $lastping) {
print "<td>";img
("images/redsphere.png",10,10);print "</td>";
}
# ping response in "yellow zone"
elseif ((time() - $yellowzone) > $lastping) {
print "<td>";img
("images/yellowsphere.png",10,10);print "</td>";
}
# recent ping response, hostname ok
else {
print "<td>";img
("images/greensphere.png",10,10);print "</td>";
}
Nice tool !!
thanks,
alain@towersemi.com