We’re using Zabbix to monitor our network, and would like to use it to monitor Asterisk as well but I’m stuck on one of the things that’s been asked of me. I think this might be getting to be a bit too specific to Asterisk to get help on the Zabbix forums, so I thought I’d ask here and see if anyone had some pointers for me. We’re already monitoring our asterisk server in a few different ways, we’re using the standard Linux template as well as a few user parameters.
For those of you unfamiliar with Zabbix when using UserParameters we can execute almost any command that you could use asterisk -rvvvvvvx ‘insert command here’ and we’re using the following commands to monitor our sip and iax2 trunks as well as monitoring the number of active calls.
Registered SIP Trunks:
Registered IAX2 Trunks:
But we’d also like to put something together that could automate making a test call every 10 minutes and be notified if the call fails as well as call one of our own numbers and ensure that we can receive incoming calls as well and using something like DTMF ensure that we’re getting an accurate response. I can grep, awk, wc, etc. and do what I need to do to make that code acceptable by Zabbix, but I’m not familiar enough with Asterisk to put something together.
I’ve read about the originate and dial commands but am a bit confused and unable to successfully make a call to an outside number, any help/tips/tricks/advice would be greatly appreciated.