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:
Tom Laermans
2010-06-26 22:44:33 +00:00
parent ce519dc51e
commit c3198f80c5
4 changed files with 21 additions and 0 deletions

View 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";
}
}
}
?>

View 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", "", ""),'"');
?>

View File

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