Thanks Jgoff. Your solution seemed a little outside my nagios skill set so I attacked from a different angle and will settle for updating the snmp_check as I add and remove devices.
Essentially, I am using the same oid to check total APs to ensure I am not approaching licensing limits and also to see if too many are down.
define service{
use generic-service ; Inherit values from a template
host_name Aruba_MD02
service_description Total number of AP
check_command check_snmp! -o 1.3.6.1.4.1.14823.2.2.1.1.3.1.0 -P 3 -L authPriv -U snmpuser -A ************* -a sha -x aes -X ************ -w 1000 -c 1025
}
define service{
use generic-service ; Inherit values from a template
host_name Aruba-MD02
service_description Total Down APs
check_interval 50
check_command check_snmp! -o 1.3.6.1.4.1.14823.2.2.1.1.3.1.0 -P 3 -L authPriv -U snmpuser -A ************ -a sha -x aes -X ************ -w @975:980 -c @0:975
}
I have 985 APs, so I get a warning if the total APs is greater than 1000 and a different warning if the total is between 975 and 980. (5-10 APs down)
I get a critical if the total APs is greater than 1025 and a different critical if the total is less than 975. (more than 10 APs down)
------------------------------
-Bill
------------------------------
Original Message:
Sent: Jan 27, 2022 10:13 PM
From: Jeffrey Goff
Subject: SNMP OID for Down APs
.1.3.6.1.4.1.14823.2.2.1.1.3.4.1.6 doesn't work in my lab either way (against 6.x or 8.x), you may need to use wlanAPStatus and run it through a script to produce a single number for nagios to use, e.g.
user@k246:/home/mibs/6.2.1.x# snmpwalk -v2c -cxxxxx -O0X -mALL -M. 1.2.3.4 wlanAPStatusWLSX-WLAN-MIB::wlanAPStatus[STRING: 20:a6:cd:xx:xx:xx] = INTEGER: down(2)WLSX-WLAN-MIB::wlanAPStatus[STRING: 24:de:c6:xx:xx:xx] = INTEGER: down(2)WLSX-WLAN-MIB::wlanAPStatus[STRING: 6c:f3:7f:xx:xx:xx] = INTEGER: down(2)WLSX-WLAN-MIB::wlanAPStatus[STRING: 6c:f3:7f:xx:xx:xx] = INTEGER: down(2)WLSX-WLAN-MIB::wlanAPStatus[STRING: 6c:f3:7f:xx:xx:xx] = INTEGER: down(2)WLSX-WLAN-MIB::wlanAPStatus[STRING: 90:4c:81:xx:xx:xx] = INTEGER: down(2)WLSX-WLAN-MIB::wlanAPStatus[STRING: ac:a3:1e:xx:xx:xx] = INTEGER: up(1)user@k246:/home/mibs/6.2.1.x# snmpwalk -v2c -cxxxxx -O0X -mALL -M. 1.2.3.4 wlanAPStatus | grep "down" | wc -l6MIB translate for wlanAPStatus OID: .1.3.6.1.4.1.14823.2.2.1.5.2.1.4.1.19Short: WLSX-WLAN-MIB::wlanAPStatus Long: enterprises.aruba.arubaEnterpriseMibModules.switch.wlsxEnterpriseMibModules.wlsxWlanMIB.wlsxWlanStateGroup.wlsxWlanAccessPointInfoGroup.wlsxWlanAPTable.wlsxWlanAPEntry.wlanAPStatus
Original Message:
Sent: Jan 18, 2022 04:44 PM
From: William Songstad
Subject: SNMP OID for Down APs
I am monitoring the APs on my system with Nagios which does a simple SNMP query and deals with the output. I was able to find the OID for currently up APs, but since that number is always changing as I add and remove APs, it isn't nearly as valuable as currently down APs. The only documentation that I could find was for an earlier version of ArubaOS. Version 8.6 does not seem to recognize the OID from documentation for 6.2
Does anybody know of more current documentation or know the current OID for down APs?
Here is what the documentation for 6.2 shows
Number of Current APs per Controller .1.3.6.1.4.1.14823.2.2.1.1.3.1 (works)
Number of Down APs per Controller .1.3.6.1.4.1.14823.2.2.1.1.3.4.1.6 (doesn't work)
Thanks for any assistance.
------------------------------
-Bill
------------------------------