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
NRPE on CPanel
Re: NRPE on CPanel
Can you post your nrpe.cfg file from the cPanel machine? Be sure to remove any potentially sensitive information before sharing it publicly.
What process did you use to install NRPE on the cPanel machine? Did you follow any specific documentation?
Can you share the output of ls -laht executed against the path on the cPanel machine (not your Nagios Core machine) that contains your Nagios plugins? Presumably this is /usr/local/nagios/libexec/.
What process did you use to install NRPE on the cPanel machine? Did you follow any specific documentation?
Can you share the output of ls -laht executed against the path on the cPanel machine (not your Nagios Core machine) that contains your Nagios plugins? Presumably this is /usr/local/nagios/libexec/.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: NRPE on CPanel
In addition to @mcapra's suggestions, try running the check_mailqueuecommand directly and not through nrpe. The full command can be found in the nrpe.cfg file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.