mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix use of CISCO-AAA-SESSION-MIB
It should only be used if OS was discovered.
This commit is contained in:
@@ -22,10 +22,12 @@ if (empty($os)) {
|
||||
$os = 'iosxr';
|
||||
}
|
||||
|
||||
$extra_mibs = array(
|
||||
"ciscoAAASessionMIB" => "CISCO-AAA-SESSION-MIB",
|
||||
);
|
||||
register_mibs($device, $extra_mibs, "includes/discovery/os/ios.inc.php");
|
||||
if (!empty($os)) {
|
||||
$extra_mibs = array(
|
||||
"ciscoAAASessionMIB" => "CISCO-AAA-SESSION-MIB",
|
||||
);
|
||||
register_mibs($device, $extra_mibs, "includes/discovery/os/ios.inc.php");
|
||||
}
|
||||
}
|
||||
|
||||
// Fallback case
|
||||
|
Reference in New Issue
Block a user