Skip to content

Commit

Permalink
Merge pull request librenms#217 from toyowheelin/routeros-poller
Browse files Browse the repository at this point in the history
This adds support for filling in $hardware on routeros devices.
  • Loading branch information
paulgear committed Mar 31, 2014
2 parents df42ad6 + 1562296 commit e2280aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion includes/polling/os/routeros.inc.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

$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); }
$features = "Level " . trim(snmp_get($device, "1.3.6.1.4.1.14988.1.1.4.3.0", "-OQv", "", ""),'"');

?>
?>

0 comments on commit e2280aa

Please sign in to comment.