mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add Mikrotik RouterOS detection (thanks to Zoiah for SNMP access)
git-svn-id: http://www.observium.org/svn/observer/trunk@1274 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
12
includes/osdiscovery/discover-routeros.php
Normal file
12
includes/osdiscovery/discover-routeros.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
if(!$os) {
|
||||
|
||||
if ($sysDescr == "router") {
|
||||
if (is_numeric(snmp_get($device, "SNMPv2-SMI::enterprises.14988.1.1.4.3.0", "-Oqv", ""))) {
|
||||
$os = "routeros";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
6
includes/polling/device-routeros.inc.php
Normal file
6
includes/polling/device-routeros.inc.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
$version = trim(snmp_get($device, "1.3.6.1.4.1.14988.1.1.4.4.0", "-OQv", "", ""),'"');
|
||||
$version .= " Level " . trim(snmp_get($device, "1.3.6.1.4.1.14988.1.1.4.3.0", "-OQv", "", ""),'"');
|
||||
|
||||
?>
|
||||
@@ -77,6 +77,9 @@ $config['os']['junos']['type'] = "network";
|
||||
$config['os']['screenos']['text'] = "Juniper ScreenOS";
|
||||
$config['os']['screenos']['type'] = "firewall";
|
||||
|
||||
$config['os']['routeros']['text'] = "Mikrotik RouterOS";
|
||||
$config['os']['routeros']['type'] = "network";
|
||||
|
||||
$config['os']['junose']['text'] = "Juniper JunOSe";
|
||||
$config['os']['junose']['type'] = "network";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user