mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Netonix Update
Add copyright header Add support for CPU and memory Fix version display for 1.3.9 Improve fan description
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
if ($device['os'] == 'netonix') {
|
||||
echo 'NETONIX : ';
|
||||
|
||||
// $system = snmp_get($device, 'ssCpuSystem.0', '-OvQ', 'UCD-SNMP-MIB');
|
||||
// $user = snmp_get($device, 'ssCpuUser.0', '-OvQ', 'UCD-SNMP-MIB');
|
||||
$idle = snmp_get($device, 'ssCpuIdle.0', '-OvQ', 'UCD-SNMP-MIB');
|
||||
|
||||
if (is_numeric($idle)) {
|
||||
discover_processor($valid['processor'], $device, 0, 0, 'ucd-old', 'CPU', '1', (100 - $idle));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user