mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Changed default millisec + removed check for loss < 0
This commit is contained in:
@@ -44,7 +44,7 @@ $config['fping'] = "/usr/bin/fping";
|
||||
$config['fping_options']['retries'] = 3;
|
||||
$config['fping_options']['timeout'] = 500;
|
||||
$config['fping_options']['count'] = 3;
|
||||
$config['fping_options']['millisec'] = 5;
|
||||
$config['fping_options']['millisec'] = 20;
|
||||
$config['fping6'] = "/usr/bin/fping6";
|
||||
$config['snmpwalk'] = "/usr/bin/snmpwalk";
|
||||
$config['snmpget'] = "/usr/bin/snmpget";
|
||||
|
@@ -503,7 +503,7 @@ function isPingable($hostname,$device_id = FALSE)
|
||||
}
|
||||
$response = array();
|
||||
$status = fping($hostname,$fping_params);
|
||||
if ($status['loss'] < 0 || $status['loss'] == 100) {
|
||||
if ($status['loss'] == 100) {
|
||||
$response['result'] = FALSE;
|
||||
} else {
|
||||
$response['result'] = TRUE;
|
||||
|
Reference in New Issue
Block a user