Page 1 of 1

check_nrpe socket timeout

Posted: Fri Jul 22, 2022 3:12 pm
by nagisami
Hello,

If check_nrpe times out after whatever the period is defined, I want to show a message different that the usual socket timeout message.
The socket timeout message usually could be ignored easily which I'm trying to avoid.

Has anyone done this before in a reliable way?

Thanks

Re: check_nrpe socket timeout

Posted: Fri Jul 29, 2022 6:17 am
by DevinPomsilina
Isn't your 12.12.12.12 address routed to internet? It loosk to belong to AT&T or something?

Unless you actually own the 12.x.x.x subnet you should probably try one of the private networks for your hosts. Let me try to install the NRPE agent on another server in the same "enclave" as the nagios server. If it works, this will definitely reveal itself omegle shagle voojio be a router firewall issue.

Re: check_nrpe socket timeout

Posted: Thu Aug 04, 2022 6:38 am
by PaulRajeshMEzra45
I see where you are going with this. Let me try to install the NRPE agent on another server in the same "enclave" as the nagios server. If it works, this will definitely reveal itself be a router firewall issue.
Is iptables running? if so, you might omegle.2yu.co need to open port 5666 (assuming your LAN is trusted):

iptables -A IN_public_allow -p udp -s="0.0.0.0/0" --dport 5666 omeglz echat -j ACCEPT

Re: check_nrpe socket timeout

Posted: Thu Aug 04, 2022 12:53 pm
by nagisami
I'm looking for a alternative to throw a message instead of "socket_timeout" message which doesn't make sense to a layman. It is presumed that there is a problem at the other end the test isn't working.

Thanks

Re: check_nrpe socket timeout

Posted: Thu Aug 04, 2022 4:52 pm
by gormank
You could write a wrapper script that runs check_nrpe and prints another message when it times out, or you can modify the source and recompile it.
You can also adjust the return value...
-u, --unknown-timeout Make connection problems return UNKNOWN instead of CRITICAL
-t, --timeout=INTERVAL:STATE
INTERVAL Number of seconds before connection times out (default=10)
STATE Check state to exit with in the event of a timeout (default=CRITICAL)
Timeout STATE must be a valid state name (case-insensitive) or integer:
(OK, WARNING, CRITICAL, UNKNOWN) or integer (0-3)

Re: check_nrpe socket timeout

Posted: Thu Nov 17, 2022 11:49 am
by nagisami
Thank you!

Yes, the wrapper idea was the one I ended up doing.