Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check Cisco WLC Access Points
If it finds an AP that was on the WLC that it was not expecting to find, it throws a 'warning'.
It's customizable, but I chose this method, since what typically happens when there is a WLC problem is AP's begin roaming around to various WLC's that are all part of the same mobility group. This can yield a lot of alerts, if you specify 'Critical' for both AP's missing AND AP's found unexpectedly.
I wrote it in Python. The usage is fairly simple, just populate a file in your conf.d directory called "wlc--aps_expected.
Note, this relies on netsnmp and the correct mibs to be installed. This is currently for AirOS WLC's only.
usage: check_wlc_ap.py -H -f
/etc/nagios3/commands.cfg:
define command{
command_name check_wlc_ap
command_line /usr/lib/nagios/plugins/check_wlc_ap.py -H $HOSTADDRESS$ -f $ARG1$
}
Note, in order for me to get the correct email output I needed to modify the "service macro" to include "long" output...meaning, instead of a single line in the result email it will include all the lines that are put to stdout (in my case all the ap's that are missing)
vi /etc/nagios3/commands.cfg:
under 'notify-service-by-email' I added "LONGSERVICEOUTPUT" directly after " "SERVICEOUTPUT". Resulting command is as follows:
# 'notify-service-by-email' command definition
define command{
command_name notify-service-by-email
command_line /usr/bin/printf "%b" "***** Nagios *****nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVICEDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $LONGDATETIME$nnAdditional Info:n$SERVICEOUTPUT$n$LONGSERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
Reviews (0)
Be the first to review this listing!