Files
librenms-librenms/includes/polling/os/zmtel.inc.php
Spencer Butler 9cfa2aaf40 Added support for Zmtel greenpacket devices (os: zmtel) (#10067)
* Added support for Zmtel greenpacket devices (os: zmtel)

* added more sensors

* move count sensors to features

* rename MIB and move modulation scheme to state sensor

* added test data

* graph pCID
2019-04-29 09:53:35 -05:00

11 lines
545 B
PHP

<?php
$oids = 'dlMCS ulMCS eNBID pCID softwareVersion modelName hardwareVersion SN bootROM lteBand';
$data = snmp_getnext_multi($device, $oids, '-OUQs', 'ZMTEL-ODU-MIB');
$version = $data['softwareVersion'];
$hardware = $data['modelName'] . ' ' . $data['hardwareVersion'];
$serial = $data['SN'];
$features = 'eNodeB: ' . $data['eNBID'] . ' Physical Cell: ' . $data['pCID'] . ' DL Modulation: ' . $data['dlMCS'] . ' UL Modulation: ' . $data['ulMCS'] . ' bootROM: ' . $data['bootROM'] . ' LTE Band: ' . $data['lteBand'];
unset($oids, $data);