NRPE on CPanel
Posted: Wed Oct 10, 2018 12:57 pm
I installed NRPE on CPANEL and allways recieve this error (local or remote with root or nagios user)
What could it be ?
# id
uid=0(root) gid=0(root)
]# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_mailqueue
ERROR: is not executable by (uid 1296:gid(1297 1297))
]$ id
uid=1296(nagios)
]$ /usr/local/nagios/libexec/check_nrpe -H localhost -c check_mailqueue
ERROR: is not executable by (uid 1296:gid(1297 1297))
]$ ls -laht /usr/local/nagios/libexec/check_nrpe
-rwxrwxr-x 1 nagios nagios 76K Oct 10 12:48 /usr/local/nagios/libexec/check_nrpe
What could it be ?
# id
uid=0(root) gid=0(root)
]# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_mailqueue
ERROR: is not executable by (uid 1296:gid(1297 1297))
]$ id
uid=1296(nagios)
]$ /usr/local/nagios/libexec/check_nrpe -H localhost -c check_mailqueue
ERROR: is not executable by (uid 1296:gid(1297 1297))
]$ ls -laht /usr/local/nagios/libexec/check_nrpe
-rwxrwxr-x 1 nagios nagios 76K Oct 10 12:48 /usr/local/nagios/libexec/check_nrpe