From ee301e130cb8a17431021e33b34463724ced300a Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Mon, 9 Apr 2007 13:14:12 +0000 Subject: [PATCH] woo git-svn-id: http://www.observium.org/svn/observer/trunk@86 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/functions.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index ef2047039..91f53d942 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -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;