/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?
httpd status unknown due to insufficient privileges.
-
sureshkraj2012
- Posts: 65
- Joined: Tue Aug 06, 2013 11:06 pm
-
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.
Does the nagios user on the remote system have sudo privileges for
Code: Select all
/usr/local/nagios/libexec/check_init_service *