I personally use Zabbix, and custom scripts that call
asterisk -rx or the manager API and return numeric digits. For instance, I use
"asterisk -rx 'sip show peers' | grep --text -i 'OK' | wc -l" to show me how
many users are connected at once, and test for no data return after 60 seconds
for deadlock catching. (Asterisk does not always play nice and return the data
you expect).
Another example: "asterisk -rx 'show channels' | grep
--text -i 'active call' | awk '{print $1}' " (if I remember correctly) gives me
my number of active calls.
Hope this was somewhat helpful.....
I'm attempting to implement an acceptable asterisk monitoring program. One method is with a simple program i've written (Adapted from the perl one in the wiki).
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sig Lange
Sent: Monday, September 19, 2005 2:58 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Asterisk monitoring availability
One problem with this solution is the timeout I expect a packet response. Currently it's set to 1 second, and I still sometimes miss an IAX ping response. Which throws false alarms to my other programs, SMS's, etc. What have others done to monitor asterisks availability?
Thanks
--
Sig Lange
http://www.signuts.net/
_______________________________________________ --Bandwidth and Colocation sponsored by Easynews.com --
Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users