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_nrpe socket timeout

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_nrpe socket timeout

Postby nagisami » Fri Jul 22, 2022 3:12 pm

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
nagisami
 
Posts: 12
Joined: Thu Jul 27, 2017 5:39 pm

Re: check_nrpe socket timeout

Postby DevinPomsilina » Fri Jul 29, 2022 6:17 am

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.
Last edited by DevinPomsilina on Thu Sep 29, 2022 11:40 pm, edited 1 time in total.
DevinPomsilina
 
Posts: 5
Joined: Sun May 15, 2022 6:43 am

Re: check_nrpe socket timeout

Postby PaulRajeshMEzra45 » Thu Aug 04, 2022 6:38 am

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
Last edited by PaulRajeshMEzra45 on Tue Sep 13, 2022 7:06 am, edited 1 time in total.
PaulRajeshMEzra45
 
Posts: 11
Joined: Wed Feb 16, 2022 2:47 am

Re: check_nrpe socket timeout

Postby nagisami » Thu Aug 04, 2022 12:53 pm

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
nagisami
 
Posts: 12
Joined: Thu Jul 27, 2017 5:39 pm

Re: check_nrpe socket timeout

Postby gormank » Thu Aug 04, 2022 4:52 pm

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)
gormank
 
Posts: 1125
Joined: Tue Dec 02, 2014 12:00 pm

Re: check_nrpe socket timeout

Postby nagisami » Thu Nov 17, 2022 11:49 am

Thank you!

Yes, the wrapper idea was the one I ended up doing.
nagisami
 
Posts: 12
Joined: Thu Jul 27, 2017 5:39 pm


Return to Open Source Nagios Projects

Who is online

Users browsing this forum: Google [Bot] and 20 guests