Skip to content

denzill/check_asterisk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

check_asterisk

Icinga2 or Nagios plugin for checking asterisk status, detect long calls, disconnected SIP peers and get some stats.

Tested with PHP >= 5.4.16, Asterisk 16 and Icinga2

Installation

How to use

$ check_asterisk.php -H <hostname> -P <port> -u <user> -p <password> -t <seconds> [-w unconnected WARNING] [-c unconnected CRITICAL] [-m] [-i] [-W long call WARNING] [-C long call CRITICAL] [-I] [-v] [-l logfile]

Options summary

  • -H <hostname> - Asterisk AMI hostname
  • -P <port> - Asterisk AMI port
  • -u <username> - Username
  • -p <password> - Password
  • -t <read timeout> - Timeout read from AMI
  • [-v] - Verbose output (to stdout and )
  • [-w #] - Unconnected peers WARNING threshold (in seconds)
  • [-c #] - Unconnected peers CRITICAL threshold (in seconds)
  • [-m] - Check only monitored peers for connected/disconnected state
  • [-i] - Do not set CRITICAL/WARNING state for unconnected peers
  • [-W #] - Long call WARNING threshold (in seconds)
  • [-C #] - Long call CRITICAL threshold (in seconds)
  • [-I] - Do not set CRITICAL/WARNING state for long calls
  • [-l logfile] - log output to file (relative to /var/log/)

<option> - required option, [option] - optional option

TODO

About

Plugin for icinga/nagios to check asterisk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages