mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
woo
git-svn-id: http://www.observium.org/svn/observer/trunk@86 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -253,10 +253,8 @@ function isSNMPable($hostname, $community, $snmpver) {
|
||||
|
||||
function isPingable($hostname) {
|
||||
global $fping;
|
||||
$status = `$fping $hostname | cut -d " " -f 3`;
|
||||
$status = trim($status);
|
||||
|
||||
if($status == "alive") {
|
||||
$status = `$fping $hostname`;
|
||||
if(strstr($status, "alive")) {
|
||||
return TRUE;
|
||||
} else {
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user