nrpe timeouts

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.
Locked
edgreenberg
Posts: 2
Joined: Mon Feb 20, 2012 8:42 am

nrpe timeouts

Post by edgreenberg »

I'm having issues with nrpe timeouts on long running tests.

I am getting a timeout after 60.01s.

I have -t 180 on my check_nrpe command.

I recently found the setting command_timeout=60 and updated that to 300.

When I run the test locally with the 'time' command, I get 1m3.353 seconds (this time) so I know that command_timeout=60 was too short, but =300 should be fine.

Yes, I did restart nrpe.

I still get the timeout even though I have command_timeout=300.

I can see the process running on the client side:
17290 ? S 0:00 \_ /usr/sbin/nrpe -c /etc/nagios/nrpe.cfg -d
17291 ? S 0:00 \_ sudo /usr/local/sbin/last_backup /var/www/html
17292 ? S 0:00 \_ /usr/bin/python /usr/local/sbin/last_backup /var/www/html
17294 ? S 0:00 \_ /usr/bin/python /usr/local/sbin/rdbackup.py --last-backup --filesystem /var/www/html
17295 ? S 0:00 \_ /bin/sh -c rdiff-backup --remote-schema 'ssh -o "StrictHostKeyChecking no" -i /root/.ssh/id_rsa_backup -C %s rdi
17296 ? S 0:00 \_ /usr/bin/python /bin/rdiff-backup --remote-schema ssh -o "StrictHostKeyChecking no" -i /root/.ssh/id_rsa_backup -C %s rdi
17299 ? S 0:00 | \_ ssh -o StrictHostKeyChecking no -i /root/.ssh/id_rsa_backup -C nfs@backupserver.happysoftware.com rdiff-backup --serv
17297 ? S 0:00 \_ tail -1l
17298 ? S 0:00 \_ cut -f 1 -d

Any help appreciated
Ed
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nrpe timeouts

Post by scottwilkerson »

in the nagios .cfg there are 2 timeouts as well
host_check_timeout
service_check_timeout

Does it run fine from the command line with check_nrpe from the nagios server?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
edgreenberg
Posts: 2
Joined: Mon Feb 20, 2012 8:42 am

Re: nrpe timeouts

Post by edgreenberg »

I increased service_check_timeout to 300, and I think the problem is resolved.

Many thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: nrpe timeouts

Post by scottwilkerson »

edgreenberg wrote:I increased service_check_timeout to 300, and I think the problem is resolved.

Many thanks
Oh excellent
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked