NRPE on CPanel

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
gastonq05
Posts: 1
Joined: Wed Oct 10, 2018 12:53 pm

NRPE on CPanel

Post 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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NRPE on CPanel

Post 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/.
Former Nagios employee
https://www.mcapra.com/
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: NRPE on CPanel

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked