Hi
I am trying to implement monitoring of asterisk (all 4 spans-i want to show
them line by line Up or down) using nagios using below script, but i always get
the status as down and red..can anyone let me know how to read an output from
nagios plugin ? nagios etc is configured already and is working
PATH=/bin:/sbin:/usr/bin:/usr/sbin
FAILS=""
STATUS=$(asterisk -rnx "pri show span 1" | grep -a Status | awk '{print
$3;}' | cut -d, -f1)
if [ "${STATUS}" == "Up" ]; then
echo "PRI UP"
exit 0
else
echo "PRI DOWN"
exit 2
fi
if i execute the script from command line i get the correct output i.e OK for
span 1 but on nagios web interface i get it as down...
If anyone can share the above script for asterisk monitoring then i wud be
grateful
rgds
Sriram_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users