mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Merge ethernetprobe2 into akcp and improve akcp Use higher resolution temperature values if available Properly hand F/C temperature scales (LibreNMS always uses C) Add current, voltage, airflow (no test data) Move humidity to yaml * Update akcp.snmprec * Update akcp-serverprobe8.json * Add group * Update test data remove old MIB
11 lines
308 B
PHP
11 lines
308 B
PHP
<?php
|
|
|
|
$hardware = trim(snmp_get($device, "1.3.6.1.4.1.3854.1.1.6.0", "-OQv", "", ""), '"');
|
|
$hardware .= ' ' . trim(snmp_get($device, "1.3.6.1.4.1.3854.1.1.8.0", "-OQv", "", ""), '" ');
|
|
|
|
|
|
if (empty(trim($hardware))) {
|
|
preg_match('/SP\d+/', $device['sysDescr'], $matches);
|
|
$hardware = $matches[0];
|
|
}
|