After reading this
[root@wcmisdlin02 alexus]# tail -2 /etc/sudoers
## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)
#includedir /etc/sudoers.d
[root@wcmisdlin02 alexus]#
I now have following:
[root@wcmisdlin02 ~]# cat /etc/sudoers.d/01_nagios
Defaults:nagios !requiretty
nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/
[root@wcmisdlin02 ~]#
yet I'm getting in my /var/log/messages
Sep 21 11:14:32 wcmisdlin02 sudo: nrpe : sorry, you must have a tty to run sudo ; TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/lib/nagios/plugins/check_load -w 6,5,4 -c 8,7,6
What am I doing wrong?