mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
3e0e359f5b
* Initial adding Ubiquiti EdgePower sensors * Initial adding Ubiquiti EdgePower sensors * Create airos-ep OS * Added sensors * Travis * Added test / snmprec data * Codeclimate * minors * Update ubnt.inc.php * Update UBNT-EdgeMAX-MIB * Update ubnt.inc.php * Change Airos to EdgeOS * Add forgotten files * Test data * Change os yaml * Travis * Update edgeos-ep.inc.php * Create edgeos-ep.json * Update edgeos-ep.yaml * Update ubnt.inc.php * Update airos.yaml * Battery and PSU quantity not beeing displayed * Rerun OS tests to generate json file * Add high low temp values recommended by factory * Add high low temp values recommended by factory * Travis Co-authored-by: PipoCanaja <[email protected]> Co-authored-by: Tony Murray <[email protected]>
6 lines
196 B
PHP
6 lines
196 B
PHP
<?php
|
|
|
|
$osdata = snmp_get_multi_oid($device, ['ubntModel.0', 'ubntVersion.0'], '-OQUs', 'UBNT-EdgeMAX-MIB');
|
|
$hardware = 'Ubiquiti ' . $osdata['ubntModel.0'];
|
|
$version = $osdata['ubntVersion.0'];
|