mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Allow individual devices to be enabled for MIB polling
This commit is contained in:
@@ -753,16 +753,16 @@ function round_Nth($val = 0, $round_to) {
|
||||
*/
|
||||
function is_mib_poller_enabled($device)
|
||||
{
|
||||
if (!is_module_enabled('poller', 'mib')) {
|
||||
return false;
|
||||
if (is_dev_attrib_enabled($device, 'poll_mib')) {
|
||||
d_echo('MIB module enabled for '.$device['hostname']."\n");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!is_dev_attrib_enabled($device, 'poll_mib')) {
|
||||
d_echo('MIB module disabled for '.$device['hostname']."\n");
|
||||
return false;
|
||||
if (is_module_enabled('poller', 'mib')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
} // is_mib_poller_enabled
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user