Seems like our Nagios XI server has insufficient privileges to check status of httpd service.
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_init_service httpd
OUTPUT: httpd status unknown due to insufficient privileges.Grtz
Willem
Code: Select all
COMMAND: /usr/local/nagios/libexec/check_init_service httpd
OUTPUT: httpd status unknown due to insufficient privileges.Code: Select all
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_init_service httpdCode: Select all
nagios ALL=NOPASSWD: /usr/local/nagios/libexec/check_init_service *Code: Select all
define command {
command_name check_init_service
command_line sudo $USER1$/check_init_service $ARG1$
}Code: Select all
define service {
host_name localhost
service_description apache
use xiwizard_generic_service
check_command check_init_service!httpd!
register 1
}