Re: NRPE Unable to read output - ON CENTOS7 Server
Posted: Mon Jun 08, 2020 5:02 am
Hi
[root@dwylbopemail03 ~]# grep nagios /etc/passwd
nagios
191:189::/var/spool/nagios:/sbin/nologin
[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%
[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%