librenms-librenms/includes/polling/os/adtran-aos.inc.php
Tony Murray edbb6ae0e3 refactor: Centralize MIB include directory specification (#4603)
* refactor: Centralize MIB include directory specification
The default is now:
```
$config['mib_dir'].'/mibdirname:'.$config['mib_dir']
```
This means we exclude OS mibs and only use ours  (we could prepend `+` if we want to include os mibs.
All snmp calls should only include the name of the subdirectory under the mibs directory.

* Remove d_echo from Proc
Fix snmpsim tests.
2016-09-28 14:19:28 +01:00

20 lines
738 B
PHP

<?php
/*
* LibreNMS ADTRAN AOS OS Poller module
*
* Copyright (c) 2016 Chris A. Evans <thecityofguanyu@outlook.com>
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, either version 3 of the License, or (at your
* option) any later version. Please see LICENSE.txt at the top level of
* the source code distribution for details.
*/
$hardware = snmp_get($device, 'adAOSDeviceProductName.0', '-Ovqs', 'ADTRAN-AOSUNIT');
$version = snmp_get($device, 'adAOSDeviceVersion.0', '-Ovqs', 'ADTRAN-AOSUNIT');
$serial = snmp_get($device, 'adAOSDeviceSerialNumber.0', '-Ovqs', 'ADTRAN-AOSUNIT');
$features = '';