Added WebUI override to disable icmp checks for a device

This commit is contained in:
laf
2015-10-13 19:12:07 +00:00
parent a1257e2ffe
commit 769cc293c3
2 changed files with 8 additions and 1 deletions

View File

@@ -490,7 +490,8 @@ function isSNMPable($device) {
function isPingable($hostname, $address_family = AF_INET, $device_id = FALSE) {
global $config;
if ($config['icmp_check'] === true) {
$tmp_device = array('device_id'=>$device_id);
if ($config['icmp_check'] === true || get_dev_attrib($tmp_device,'override_icmp_disable') != "true") {
$fping_params = '';
if(is_numeric($config['fping_options']['retries']) || $config['fping_options']['retries'] > 1) {