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

View File

@@ -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;