Removed ping + performance graphs and tab if skip ping check

This commit is contained in:
laf
2015-10-17 18:49:01 +00:00
parent c653e3c0ee
commit bbae6e9c48
5 changed files with 44 additions and 22 deletions

View File

@@ -758,3 +758,19 @@ function round_Nth($val = 0, $round_to) {
}
} // end round_Nth
/**
* Checks if config allows us to ping this device
* $attribs contains an array of all of this devices
* attributes
* @param array $attribs Device attributes
* @return bool
**/
function can_ping_device($attribs) {
global $config;
if ($config['icmp_check'] === true && $attribs['override_icmp_disable'] != "true") {
return true;
}
else {
return false;
}
} // end can_ping_device