mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
newdevice: Added CPU sensor for Cisco WLC (#6562)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user