Page 1 of 1

NRPE on CPanel

Posted: Wed Oct 10, 2018 12:57 pm
by gastonq05
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

Re: NRPE on CPanel

Posted: Wed Oct 10, 2018 2:21 pm
by mcapra
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/.

Re: NRPE on CPanel

Posted: Wed Oct 10, 2018 4:49 pm
by cdienger
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.