mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
17 lines
420 B
PHP
17 lines
420 B
PHP
<?php
|
|
|
|
if (starts_with($sysDescr, 'router') && is_numeric(snmp_get($device, 'SNMPv2-SMI::enterprises.14988.1.1.4.3.0', '-Oqv', ''))) {
|
|
$os = 'routeros';
|
|
}
|
|
|
|
if (starts_with($sysDescr, 'RouterOS')) {
|
|
$os = 'routeros';
|
|
}
|
|
|
|
if (!empty($os)) {
|
|
$extra_mibs = array(
|
|
"ciscoAAASessionMIB" => "CISCO-AAA-SESSION-MIB",
|
|
);
|
|
register_mibs($device, $extra_mibs, "includes/discovery/os/routeros.inc.php");
|
|
}
|