Don't display MIB menu items if MIB-based polling is disabled

This commit is contained in:
Paul Gear
2016-01-07 09:25:59 +10:00
parent 4db7b95ba2
commit 7170a240a8
6 changed files with 43 additions and 7 deletions

View File

@@ -371,7 +371,7 @@ if (device_permitted($vars['device']) || $check_device == $vars['device']) {
</a>
</li>';
if (device_permitted($device['device_id'])) {
if (device_permitted($device['device_id']) && is_mib_poller_enabled($device)) {
echo '<li class="'.$select['mib'].'">
<a href="'.generate_device_url($device, array('tab' => 'mib')).'">
<i class="fa fa-file-text-o"></i> MIB