Allow individual devices to be enabled for MIB polling

This commit is contained in:
Paul Gear
2016-04-30 12:10:33 +10:00
parent 1848d63e28
commit 3c75b8acf6

View File

@@ -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