librenms/includes/discovery/os/routeros.inc.php
Neil Lathwood 7f5c555ba5 refactor: Move mib based polling into yaml config files (#5234)
* refactor: More mib based polling into yaml config files

* doc update

* Update MIB-based-polling.md
2017-01-03 11:12:39 -06:00

10 lines
226 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';
}