mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* 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
12 lines
367 B
PHP
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);
|