git-svn-id: http://www.observium.org/svn/observer/trunk@86 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2007-04-09 13:14:12 +00:00
parent b9e5bd25ee
commit ee301e130c
+2 -4
View File
@@ -253,10 +253,8 @@ function isSNMPable($hostname, $community, $snmpver) {
function isPingable($hostname) { function isPingable($hostname) {
global $fping; global $fping;
$status = `$fping $hostname | cut -d " " -f 3`; $status = `$fping $hostname`;
$status = trim($status); if(strstr($status, "alive")) {
if($status == "alive") {
return TRUE; return TRUE;
} else { } else {
return FALSE; return FALSE;