check_sip getting a time out

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
Mxolisi
Posts: 3
Joined: Wed Sep 06, 2023 3:25 pm

check_sip getting a time out

Post by Mxolisi »

Hi All

I'm probably missing something obvious here so please bare with me. I have set up the check_sip command and opened the port on the server that I am trying to monitor, however when I run the check command from Nagios I get a no response. Does anyone know what I have missed.

Output of running command from nagios pluginfolder
SIP timeout: No response from SIP server after 15 seconds
check_sip command in commands.cfg

Code: Select all

define command {
    command_name    check_sip
    command_line    $USER1$/check_sip -u $ARG1$ -H $ARG2$
}
Please let me know if you need anything else in terms of logs etc
bbahn
Posts: 386
Joined: Thu Jan 12, 2023 5:42 pm

Re: check_sip getting a time out

Post by bbahn »

Hello,

Have you tried testing the command directly from the command line?

Code: Select all

/usr/local/nagios/libexec/check_sip -u uri_here -H host_here
If that doesn't work, I'd check your firewall settings, ensuring that your XI server and your SIP server have the necessary firewall permissions

If that doesn't help, posting your /usr/local/nagios/var/nagios.log may help. Your SIP server may also have logs of the failed transaction if the firewall is properly permissive.
Actively advancing awesome answers with ardent alliteration, aptly addressing all ambiguities. Amplify your acumen and avail our amicable assistance. Eagerly awaiting your astute assessments of our advice.
Mxolisi
Posts: 3
Joined: Wed Sep 06, 2023 3:25 pm

Re: check_sip getting a time out

Post by Mxolisi »

Hi bbhan

Firstly apologies for the late response.

I have checked the below and it's all correct. I still get a time out to the server.

With regards to the logs, I will review them tomorrow first just to see if I spot anything, if not I will add them
Mxolisi
Posts: 3
Joined: Wed Sep 06, 2023 3:25 pm

Re: check_sip getting a time out

Post by Mxolisi »

Hi bbhan

The Nagios server does not have anything that sticks out, in fact it doesn't even have the attempt to check nrpe on the agent machine and the agent machine doesn't have a nagios.log file
Post Reply