Page 1 of 1

nrpe timeouts

Posted: Thu Mar 08, 2018 12:02 pm
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 [email protected] rdiff-backup --serv
17297 ? S 0:00 \_ tail -1l
17298 ? S 0:00 \_ cut -f 1 -d

Any help appreciated
Ed

Re: nrpe timeouts

Posted: Thu Mar 08, 2018 12:35 pm
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?

Re: nrpe timeouts

Posted: Thu Mar 08, 2018 12:50 pm
by edgreenberg
I increased service_check_timeout to 300, and I think the problem is resolved.

Many thanks

Re: nrpe timeouts

Posted: Thu Mar 08, 2018 1:41 pm
by scottwilkerson
edgreenberg wrote:I increased service_check_timeout to 300, and I think the problem is resolved.

Many thanks
Oh excellent