Page 1 of 1

check_sip getting a time out

Posted: Mon Sep 11, 2023 1:41 am
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

Re: check_sip getting a time out

Posted: Mon Sep 11, 2023 10:18 am
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.

Re: check_sip getting a time out

Posted: Wed Sep 13, 2023 10:25 am
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

Re: check_sip getting a time out

Posted: Thu Sep 14, 2023 3:33 am
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