mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* ovaldi UPS support * ovaldi UPS tests * serial + model + version inc tests * update of the code using details from requester * update of the code using details from requester * update of the tests * forgot discovery yaml ...
6 lines
295 B
PHP
6 lines
295 B
PHP
<?php
|
|
$orvaldi_data = snmp_get_multi_oid($device, ['upsIdSerialNumber.0', 'upsIdFWVersion.0', 'upsIdModelName.0'], '-OUQs', 'companyMIB');
|
|
$version = $orvaldi_data['upsIdFWVersion.0'];
|
|
$serial = $orvaldi_data['upsIdSerialNumber.0'];
|
|
$hardware = $orvaldi_data['upsIdModelName.0'];
|