diff --git a/includes/discovery/os/routeros.inc.php b/includes/discovery/os/routeros.inc.php index 863754101..7a65b364d 100644 --- a/includes/discovery/os/routeros.inc.php +++ b/includes/discovery/os/routeros.inc.php @@ -2,6 +2,8 @@ if (!$os) { + # RouterOS <= 4 + # sysDescr.0 = STRING: router if ($sysDescr == "router") { if (is_numeric(snmp_get($device, "SNMPv2-SMI::enterprises.14988.1.1.4.3.0", "-Oqv", ""))) @@ -9,6 +11,9 @@ if (!$os) $os = "routeros"; } } + # Routeros >= 5 + # sysDescr.0 = STRING: RouterOS RB493AH + if (preg_match("/^RouterOS/", $sysDescr)) { $os = "routeros"; } } -?> \ No newline at end of file +?>