NSClient Check between Firewall/NAT doesn't work


#1

Hello, I have a problem with my configuration. My Nagios is an other location as the server who I would to check. When the Server is in the same network the check work witouth problems. But whe it is extern, I become always “CRITICAL - Socket timeout after 10 seconds”

The NAT on the clientside is: 5666 -> client 12489 -> client

The NAT on the serverside is: 5667 -> nagios

an example service is:

define service { use generic-service
host_name srvPrim-BK
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION }

Can you help me?


#2

Hi,

you use on the server side another port then the default one “5666”. So when you ckeck_nt!CLIENTVERSION I bet he uses the port 5666 instead of 5667.

Try this one:

define service { use generic-service host_name srvPrim-BK service_description NSClient++ Version check_command check_nt!CLIENTVERSION -p 5667 }

Just predictin the problem. It should be also a firewall problem. But give it a try first :slight_smile:

Kind regards Matze