Hello all,
i have now build a Customsensor based on Powershell for this.
I use the SNMP-OID .1.3.6.1.4.1.14179.2.2.1.1.6 --> a list of all activ WLAN-AP on the controller.
Count them and that´s it.
It is not exact that what i need but i see the count of all activ AP`s.
The alert is realy simple --> 1 AP more or less --> alert ;-)
------------------------------
Custom Sensor Count WLAN-AP
Ver : 1.0
Description:
Count Numbr of active WLAN-AP on a Cisco 9800 Controller
important Sensorsettings in the parameterfield:
%host %snmpcommunity (check the correct order!!)
--> %host -- IP-address of your WLC
--> %snmpcommunitiy -- Read Only SNMP Community
Scanning Interval 1h
addional Powershell Modules to load or install:
--> SNMP
--> form GermanPowerShell https://germanpowershell.com
PRTG Funktionen Version 1.2b (script)
------- Script -------
Import-Module "....\PRTG Network Monitor\Custom Sensors\EXEXML\GPS_PRTGFunktionen.ps1"
Import-Module SNMP
-DEFINITION VARIABLE
$HostId = [string]$args[0] ## Read value 1 from the parameterfield
$CommId = [string]$args[1] ## Read value 2 from the parameterfield
$ApOid1 = '.1.3.6.1.4.1.14179.2.2.1.1.6' # OID BSN-APEntry
$ApAll = @() # AP-List set to 0
- Request the List of all WLAN-AP on Controller
$ApAll = Invoke-SnmpWalk -IP $HostId -Community $CommId -OIDStart $ApOid1
- Count Number of WLAN-AP
$APCount = $ApAll.count
$outputvar += Write-PRTGChannel -Titel "AP Count" -Value $APCount
Write-PRTGOut -OutputVariable $outputvar
Add comment