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)
|
function is_mib_poller_enabled($device)
|
||||||
{
|
{
|
||||||
if (!is_module_enabled('poller', 'mib')) {
|
if (is_dev_attrib_enabled($device, 'poll_mib')) {
|
||||||
return false;
|
d_echo('MIB module enabled for '.$device['hostname']."\n");
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_dev_attrib_enabled($device, 'poll_mib')) {
|
if (is_module_enabled('poller', 'mib')) {
|
||||||
d_echo('MIB module disabled for '.$device['hostname']."\n");
|
return true;
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return false;
|
||||||
} // is_mib_poller_enabled
|
} // is_mib_poller_enabled
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user