If you are running NRPE on Centos or RHEL 6 and wonder why check commands that are prepended with a sudo command always fail: remove the “requiretty” option from your /etc/sudoers and everything will work fine again. It’s a shame that it takes strace to get the initial error message our of nrpe-server.
Maybe you can use this next time and script away your sudo worries:
https://github.com/andreas-marschke/nagios-nrpe
đ
Maybe even send bug reports if something broke. I wonder if it would actually work as a production service.