mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added WebUI override to disable icmp checks for a device
This commit is contained in:
@@ -2,6 +2,12 @@
|
||||
|
||||
echo '
|
||||
<form class="form-horizontal">
|
||||
<div class="form-group">
|
||||
<label for="oxidized" class="col-sm-2 control-label">Disable ICMP Test?</label>
|
||||
<div class="col-sm-10">
|
||||
'.dynamic_override_config('checkbox','override_icmp_disable', $device).'
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="oxidized" class="col-sm-2 control-label">Exclude from Oxidized?</label>
|
||||
<div class="col-sm-10">
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user