Files
librenms-librenms/includes/polling/os/routeros.inc.php

9 lines
301 B
PHP
Raw Normal View History

<?php
2015-07-13 20:10:26 +02:00
$version = trim(snmp_get($device, '1.3.6.1.4.1.14988.1.1.4.4.0', '-OQv', '', ''), '"');
if (strstr($poll_device['sysDescr'], 'RouterOS')) {
$hardware = substr($poll_device['sysDescr'], 9);
}
2015-07-13 20:10:26 +02:00
$features = 'Level '.trim(snmp_get($device, '1.3.6.1.4.1.14988.1.1.4.3.0', '-OQv', '', ''), '"');