librenms-librenms/includes/polling/os/eaton-matrix.inc.php
Nick Peelman f2ba89bc1c Added support for Eaton Matrix Telecom Inverters (#9547)
* Add support for Eaton Matrix Telecom Inverters

* Add SNMPrec file

* Requested Changes
- Add {{ $index }} to num_oid entries
- Add full snmprec capture
- Change os polling to use a multiget

* Update eaton-matrix.snmprec

* Create eaton-matrix.json
2018-12-23 21:55:43 +00:00

12 lines
367 B
PHP

<?php
$eaton_matrix_data = snmp_get_multi_oid($device, 'matConName.0 matAgentSoftwareVerison.0 matConSerialNum.0', '-OQUs', 'TELECOM-MIB');
$hardware = trim($eaton_matrix_data['matConName.0'], '"');
$version = trim($eaton_matrix_data['matAgentSoftwareVersion.0'], '"');
$serial = trim($eaton_matrix_data['matConSerialNum.0'], '"');
unset($eaton_matrix_data);