Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
This plugin connects to Asterisk server via AMI and runs 'sip show peer ...' command and may return OK, WARNING or CRITICAL depending on peer status.
Current Version
1.0
Last Release Date
December 18, 2012
Owner
Alexander
Website
http://www.asteriskguru.ru
License
BSD
Compatible With
Full Arguments list for the script is: sipshowpeer.exp <host> <peername> <warn_threshold> <crit_threshold>
This script accepts warning threshold and error threshold arguments. If status of peer is OK (XX ms), but XX is greater than warning_threshold, script will return WARNING. If XX is even greater then error_threshold, script will returns CRITICAL.
e.g. ./sipshowpeer.exp 10.1.5.61 mtt 5 10 Status: CRITICAL (13 ms)
./sipshowpeer.exp 10.1.5.61 mtt 10 15 Status: WARNING (13 ms)
./sipshowpeer.exp 10.1.5.61 mtt 15 100 Status: OK (13 ms)
Now you can set e.g. qualify=3000 in Asterisk SIP peer configuration, and monitor WARNING and CRITICAL levels in nagios.
The script is written in expect language. Do not forget to install expect.
You must be logged in to submit a review.
To:
From: