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