I think this might be getting to be a bit too specific to asterisk to get hekp on the Zabbix forums, but I thought I'd ask anyways. We'd like to be able to make a test call every 10 minutes and be notified if the call fails. We're already monitoring Asterisk with Zabbix by checking the number of sip and iax2 trunks as well as monitoring the number of active calls using the following.
Does anyone know of a way to accomplish making an outside call and setting off a trigger if the call is unsuccessful?
Code:
UserParameter=sudo asterisk -rvvvvvx 'sip show registry'|grep Registered |wc -l
UserParameter=sudo asterisk -rvvvvvx 'iax2 show registry'|grep Registered |wc -l
UserParameter=sudo asterisk -rvvvvvx 'core show channels'|grep --text -i 'active call'|awk '{print $1}'
Comment