[root@dwylbopemail03 ~]# grep nagios /etc/passwd
nagios
[root@dwylbopemail03 ~]# /usr/lib64/nagios/plugins/check_mail_ratio
CRITICAL - Successful mail delivery ratio 0%
But when I run it from the GUI
DWYLBOPEMAIL03 (CentOS7)
[[email protected] ~]$ /usr/local/nagios/libexec/check_nrpe -H dwylbopemail03.ops-dev.pa-dev.knxa -t 30 -c check_mail_ratio
sh: /bin/sudo: Permission denied
But if I run the same command against DWYLBOPEMAIL01 (RHEL6)
[[email protected] ~]$ /usr/local/nagios/libexec/check_nrpe -H dwylbopemail01.ops-dev.pa-dev.knxa -t 30 -c check_mail_ratio
OK - Successful mail delivery ratio 99%