Manage plugin 0.5.1 icmp ping not working.

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
polletj
Cacti User
Posts: 54
Joined: Wed Aug 30, 2006 1:18 am
Location: Antwerp/Belgium

Manage plugin 0.5.1 icmp ping not working.

Post by polletj »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests