diff --git a/includes/functions.php b/includes/functions.php index c3c64b3015..d699e3a752 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -459,11 +459,12 @@ function isSNMPable($device) } } -function isPingable($hostname,$device_id) +function isPingable($hostname,$device_id = FALSE) { global $config; $status = shell_exec($config['fping'] . " -e $hostname 2>/dev/null"); + $response = array(); if (strstr($status, "alive")) { $response['result'] = TRUE;