From 3c75b8acf6d03ecbf33a94fc41dac21b2d68fe6c Mon Sep 17 00:00:00 2001 From: Paul Gear Date: Sat, 30 Apr 2016 12:10:33 +1000 Subject: [PATCH] Allow individual devices to be enabled for MIB polling --- includes/common.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/common.php b/includes/common.php index 5e55b7612..ee8d16b24 100644 --- a/includes/common.php +++ b/includes/common.php @@ -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