newdevice: Added CPU sensor for Cisco WLC (#6562)

This commit is contained in:
FTBZ
2017-05-03 15:48:59 +01:00
committed by Neil Lathwood
parent 568a2bf21d
commit c772a36142
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ over:
- { graph: device_processor, text: 'CPU Usage' }
- { graph: device_mempool, text: 'Memory Usage' }
- { graph: device_ciscowlc_numaps, text: 'Number of APs' }
- { graph: device_ciscowlc_numclients, text: 'Number of Clients' }
- { graph: device_wireless_clients, text: 'Number of Clients' }
icon: cisco
poller_modules:
cisco-cbqos: 1
@@ -0,0 +1,9 @@
<?php
if ($device['os'] === 'ciscowlc') {
$descr = 'Processor';
$proc_usage = snmp_get($device, 'agentCurrentCPUUtilization.0', '-Ovq', 'AIRESPACE-SWITCHING-MIB');
if (is_numeric($proc_usage)) {
discover_processor($valid['processor'], $device, '.1.3.6.1.4.1.14179.1.1.5.1.0', '0', 'ciscowlc', $descr, '1', $proc_usage);
}
}