z

Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

check_sip

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.

check_sip

Postby gareth129349 » Thu Sep 08, 2022 5:37 am

Hi All,

I'm having a little trouble getting the check_sip plugin to work.

If I run the command from the terminal it works fine

Code: Select all
[root@nagios objects]# /usr/local/nagios/libexec/check_sip -u sip:user@server.com -H II.PP.AA.SS
SIP/2.0 200 OK, 3.555702 seconds response time, cnt=4|rtt=3.555702s;cnt=4;0.5s;1s;0:10; code=200


From the nagios check i see -

nagios.PNG
nagios.PNG (3.31 KiB) Viewed 286 times


My Config -

/usr/local/nagios/etc/objects/commands.cfg

Code: Select all
define command{
        command_name    check_sip
        command_line    $USER1$/check_sip -u $ARG1$ -H $HOSTADDRESS$ -w 5
        }


/usr/local/nagios/etc/objects/

Code: Select all
define service{
        use                             router-service         ; Name of service template to use
        host_name                       CallSwitch
        service_description             SIP CHECK MY SERVER
        check_command                   check_sip!sip:user@myserver.com!II.PP.AA.SS
        }


The os is cent os 7

Can anyone help?

Thanks
gareth129349
 
Posts: 2
Joined: Thu Sep 08, 2022 5:24 am

Re: check_sip

Postby gareth129349 » Fri Sep 09, 2022 9:10 am

The code under /usr/local/nagios/etc/objects/commands.cfg was set to $HOSTADDRESS$ and needed changing to $ARG2$

Code: Select all
define command{
        command_name    check_sip
        command_line    $USER1$/check_sip -u $ARG1$ -H $ARG2$
        }


It's now working :)
gareth129349
 
Posts: 2
Joined: Thu Sep 08, 2022 5:24 am


Return to Open Source Nagios Projects

Who is online

Users browsing this forum: Fess [Nagios Bot] and 4 guests

cron