Files
librenms-librenms/includes/polling/os/hpe-ilo.inc.php
Neil Lathwood da7550f55f device: Added additional sensors support for HP ILO4 (#7053)
* device: Improved HP ILO4 support

Added HP ILO4 temperature (HDD, motherboard), power, state (powersupply, HDD, Fans, memory slots) sensors support.
Tested with HP ProLiant ML350p Gen8-Gen9

* actual MIB file!
2017-07-19 22:06:59 +01:00

9 lines
229 B
PHP

<?php
$oids = 'cpqSiProductName.0 cpqSiSysSerialNum.0';
$data = snmp_get_multi($device, $oids, '-OQUs', 'CPQSINFO-MIB');
$hardware = trim($data[0]['cpqSiProductName'], '"');
$serial = trim($data[0]['cpqSiSysSerialNum'], '"');