mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed some scrutinizer warnings
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user