httpd status unknown due to insufficient privileges.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sureshkraj2012
Posts: 65
Joined: Tue Aug 06, 2013 11:06 pm

httpd status unknown due to insufficient privileges.

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: httpd status unknown due to insufficient privileges.

Post by scottwilkerson »

Does the nagios user on the remote system have sudo privileges for

Code: Select all

/usr/local/nagios/libexec/check_init_service *
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked