Nagios + cpanel = not working


Hey everyone,

I have a server that has cpanel on it. I’m trying to get nagios nrpe working on it, but it returns nothing but a code 127, out of bounds.

I think this is because cpanel is blcoking something, or locked something down but I’m not sure yet.

I am able to run check commands successfully on the remote server. That server is setup almost identicallly to other servers I’m monitoring.

It does have 2 interfaces, so I have it binding to one of my ip’s.

Where would any logs or out put from nrpe go? I know it puts some things into messages.

Thanks for any help.


Nevermind, I’m an idiot.


I have an cpanel webserver and installed nagios.
in the cpanel server the default web folder is in /home/nagios/public_html/ this is the default www path
/home/nagios/public_html/cgi-bin/ is the path for cgi
when writing the .configure like:
./configure --prefix=/home/nagios/public_html --with-cgiurl=/cgi-bin --with-htmurl=/ --with-nagios-user=nagios --with-nagios-group=nagios --with-command-group=nagios

cpanel automatically created the user nagios and the group nagios

even with these parameters nagios was installed in /share/
and the cgi in /sbin/
tryed to install Version 3.0.2
May 19, 2008

when opening an cgi it says
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@nagios… and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

the plugin ./configure --prefix=/home/nagios/public_html --with-nagios-user=nagios --with-nagios-group=nagios

what have I do wrong ?
the daemon is runing
[1212740247] Caught SIGTERM, shutting down…
[1212740247] Successfully shutdown… (PID=3894)
[1212740252] Nagios 3.0.2 starting… (PID=4707)
[1212740252] Local time is Fri Jun 06 11:17:32 EEST 2008
[1212740252] LOG VERSION: 2.0
[1212740252] Finished daemonizing… (New PID=4708)

but the cgi`s are not runing…



Any ideeas please?

Naagios daemon works but without interface it`s not very helpfull.