Monitoring Asterisk With Nagios
From Olden Timey Wiki
A short article detailing the monitoring of your Asterisk PBX with Nagios .
Nagios Configuration
checkcommands.cfg
define command{
command_name check_pbx
command_line /etc/asterisk/monitor_pbx.pl
}
services.cfg
define service{
use generic-service
host_name pbxhost
service_description AsteriskPBX
is_volatile 0
check_period 24x7
contact_groups janitors,helpdesk
max_check_attempts 10
normal_check_interval 5
retry_check_interval 1
notification_interval 60
notification_period 24x7
notification_options w,u,c,r
check_command check_pbx
}
Download
monitor_pbx.pl, a perl script for testing * status is available.
Asterisk Configuration
manager.conf
[nagios] secret = XyXyXyXyXy permit=127.0.0.1/255.255.255.0 read = system write = log
