Hello list,<br><br>This is my first port on the list.<br>I'm trying to monitor one of my asterisk servers using the check_asterisk and the check_sip plugins.<br>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!).
<br><br>Is those plugins working to monitoring asterisk? Do you use them? Why appears (No output!)? How could I debug them?<br>Could someone of you paste a valid check_sip and check_asterisk configuration for use with Nagios?
<br><br>Thanks in advance.<br><br>VoipCrazy.<br><br>My config is as follow:<br><br>---------------------First the defining the services---------------------------<br><br>define service{<br>        use                             generic-service
<br>        host_name                       -PBX<br>        service_description             SIP test<br>        check_command                   check_sip!sip:108@192.168.30.10!5060<br>        contact_groups                  admins
<br>        max_check_attempts              4<br>        normal_check_interval           5<br>        retry_check_interval            1<br>        notification_interval           240<br>        check_period                    24x7
<br>        notification_period             24x7<br>        notification_options            c,r<br>        }<br><br><br>define service{<br>        use                             generic-service<br>        host_name                       -PBX
<br>        service_description             Asterisk test<br>        check_command                   check_asterisk!sip:108@192.168.30.10!5060<br>        contact_groups                  admins<br>        max_check_attempts              4
<br>        normal_check_interval           5<br>        retry_check_interval            1<br>        notification_interval           240<br>        check_period                    24x7<br>        notification_period             24x7
<br>        notification_options            c,r<br>        }<br><br><br>------------------The host-----------------------------------------------------<br><br>define host{<br>        use                     linux-server            ; Name of host template to use
<br>                                                        ; This host definition will inherit all variables that are defined<br>                                                        ; in (or inherited by) the linux-server host template definition.
<br>        host_name               -PBX<br>        alias                   VoIP-PBX<br>        address                 <a href="http://192.168.30.10">192.168.30.10</a><br>        }<br><br><br>--------------- Defining the commands-----------------------------------
<br>#Check_SIP<br>define command{<br>        command_name    check_sip<br>        command_line    $USER1$/check_sip -u $ARG1$ -H $HOSTADDRESS$ -w 5<br>        }<br><br># Check_asterisk<br>define command{<br>       command_name    check_asterisk
<br>       command_line    $USER1$/check_asterisk  -U $ARG1$ -P $ARG2$ -w 500 -c 1000<br>        }<br><br><br><br>