Page 1 of 1

httpd status unknown due to insufficient privileges.

Posted: Wed Feb 25, 2015 1:00 am
by sureshkraj2012
/usr/local/nagios/libexec/check_init_service httpd
httpd status unknown due to insufficient privileges.

It works when I execute with sudo.

sudo /usr/local/nagios/libexec/check_etc_service httpd
httpd (pid 1995) is running...

So I have declared following command in nrpe.cfg. But it gives error "unable to read nrpe output"

command[check_httpd]= sudo /usr/local/nagios/libexec/check_init_service httpd

Not sure what I missing here. Could you help me?

Re: httpd status unknown due to insufficient privileges.

Posted: Wed Feb 25, 2015 8:48 am
by scottwilkerson
Does the nagios user on the remote system have sudo privileges for

Code: Select all

/usr/local/nagios/libexec/check_init_service *