Public feed
#603090
$ip_add = $record['ip_add'];
$numberping = 1;
$ip = $ip_add;
$name = gethostbyaddr($ip);
$str = exec("ping -c $numberping $ip");
$length = strlen($str);
if($length > 1) {
print " <img src=/xml/common/image/icons/ok-small.png>IP: ".$ip." host is UP";
}
else {
print " <img src=/xml/common/image/icons/failed-small.png>IP: ".$ip." host is DOWN";
}
echo "</td></tr></table>";
echo "<br><br>";