mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* 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!
9 lines
229 B
PHP
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'], '"');
|