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.
So I have a remote check that needs to be run, and it takes longer than 10 seconds to run, and as such I keep getting "Socket timeout after 10 seconds".
That's fine, so I went and added "-t 30" to the commands.cfg file (for the NRPE command), and verified in the nrpe.cfg file on the remote client that it was still set to default which is 60 seconds I believe.
Restarted nagios service and.....it still tells me it timeouts after 10 seconds.
Is there somewhere else I should be setting the socket timeout? I want it to be a minimum of 30 seconds, it just isn't cooperating
I'm running 2.15, and when I run the command and add -t 20 at the end it does in fact run correctly without timing out. Just doesn't seem to want to do it when I add the -t value to the check_nrpe command definition in the commands.cfg
That is bizarre, it really should be behaving based upon what you've said. Let's double check how Nagios Core is interpreting the command.
Left hand pane under System click Configuration
Choose Services from the dropdown and hit Continue
Find your service in the list - click the hyperlink that's in the Check Command column
screenshot... I'll show you what one of mine looks like