mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-26 00:18:03 +02:00
Allow individual devices to be enabled for MIB polling
This commit is contained in:
+6
-6
@@ -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