Playing around on the "manage" playground , found that the icmp ping wasn't working.
Reason: Original code was just checking on the ping as a string, but the
function is returning an array.
Changed in the manage_check.php the following :
line 93:
case "3" : //icmp ping
$ping = new Net_Ping;
$ping->host["hostname"] = $q_row["hostname"];
$ping->ping(3, 1, 400, 1);
if ($ping->ping_status == "down")
{
$result = "";
}
else
{
$result = "OK";
}
break;
}
Now the host status is reported correctly.
Cheers
My 50 eurocents
Manage plugin 0.5.1 icmp ping not working.
Moderators: Developers, Moderators
Who is online
Users browsing this forum: No registered users and 6 guests