I am looking for a script to configure Monitor Trunk Failure. Here is what I have found so far.
#!/bin/bash
echo -e "Vitelity trunk is DOWN @ office" | mail -s "Failed call on Vitelity " admin@compnay.com
reload IAX2
I named the file trunkfail.sh and put it in /var/lib/asterisk/agi-bin directory
If I run: echo -e "Vitelity trunk is DOWN @ office" | mail -s "Failed call on Vitelity " admin@compnay.com in a terminal session I can receive an email. Great! I added the” reload IAX2” line. Shouldn’t that reload the IAX trunk?
Is there another script that I cannot find that other people use? I could not find any documentation on this after searching here, Google and FreePBX. Maybe I am making this harder than I need to. Basically I want to get the customer back online ASAP by running reload IAX2 and be notified that there is a problem. I’d like to calling or emailing them rather than the other way around.
Does anybody monitor their installs with Nagios or Groundwork? I am looking at those two now any input on that front would be welcomed.
Thanks, Blake

Member Since:
2008-08-25