[Nagiosplug-help] Nagios for asterisk monitoring

voip crazy voipcrazy at gmail.com
Tue Apr 10 16:44:20 CEST 2007


Hello list,

This is my first port on the list.
I'm trying to monitor one of my asterisk servers using the check_asterisk
and the check_sip plugins.
I just follow the steps related in the readme file, but no one works for me
in teh nagios web interface. If I execute them in a linux console, with the
sipuri and port both works ok. But in Nagios web interface, both shows a
message like (No output!).

Is those plugins working to monitoring asterisk? Do you use them? Why
appears (No output!)? How could I debug them?
Could someone of you paste a valid check_sip and check_asterisk
configuration for use with Nagios?

Thanks in advance.

VoipCrazy.

My config is as follow:

---------------------First the defining the
services---------------------------

define service{
        use                             generic-service
        host_name                       -PBX
        service_description             SIP test
        check_command                   check_sip!sip:108 at 192.168.30.10!5060
        contact_groups                  admins
        max_check_attempts              4
        normal_check_interval           5
        retry_check_interval            1
        notification_interval           240
        check_period                    24x7
        notification_period             24x7
        notification_options            c,r
        }


define service{
        use                             generic-service
        host_name                       -PBX
        service_description             Asterisk test
        check_command                   check_asterisk!sip:108 at 192.168.30.10
!5060
        contact_groups                  admins
        max_check_attempts              4
        normal_check_interval           5
        retry_check_interval            1
        notification_interval           240
        check_period                    24x7
        notification_period             24x7
        notification_options            c,r
        }


------------------The
host-----------------------------------------------------

define host{
        use                     linux-server            ; Name of host
template to use
                                                        ; This host
definition will inherit all variables that are defined
                                                        ; in (or inherited
by) the linux-server host template definition.
        host_name               -PBX
        alias                   VoIP-PBX
        address                 192.168.30.10
        }


--------------- Defining the commands-----------------------------------
#Check_SIP
define command{
        command_name    check_sip
        command_line    $USER1$/check_sip -u $ARG1$ -H $HOSTADDRESS$ -w 5
        }

# Check_asterisk
define command{
       command_name    check_asterisk
       command_line    $USER1$/check_asterisk  -U $ARG1$ -P $ARG2$ -w 500 -c
1000
        }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20070410/ff9c8c65/attachment.html>


More information about the Help mailing list