|
@@ -75,7 +75,9 @@ while ($sth !== null && $row = $sth->fetch()) {
|
|
|
} else {
|
|
|
if ($row['status'] == REACHABILITY_REACHABLE || $row['status'] == REACHABILITY_NOW_UNREACHABLE) {
|
|
|
$status = REACHABILITY_NOW_UNREACHABLE;
|
|
|
- call_hook("PINGER:UNREACHABLE", array($row['serial_number'], $row['ip_address']));
|
|
|
+ if ($row['status'] == REACHABILITY_REACHABLE) {
|
|
|
+ call_hook("PINGER:UNREACHABLE", array($row['serial_number'], $row['ip_address']));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|