But I am getting this error NRPE: unable to read output.
Added this command in my nre.cfg file.
Code: Select all
command[check_node]=/usr/local/nagios/libexec/node_check $ARG1$
#'check_node' command definition
Code: Select all
define command{
command_name check_node
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
Added service in linux_servers.cfg.
Code: Select all
define service{
use local-service ; Name of service template to use
host_name Sales-Demo
service_description Node Service
check_command check_nrpe!check_node
contact_groups Nagios
notification_options w,u,c,r
notification_interval 10
notification_period 24x7
}
Code: Select all
-rwxr-xr-x 1 root root 340 Jun 5 21:07 check_node
Code: Select all
[1528212140] Host address is in allowed_hosts
[1528212141] Host 10.10.100.35 is asking for command 'check_node' to be run...
[1528212141] Running command: /usr/local/nagios/libexec/check_node
[1528212141] WARNING: my_system() seteuid(0): Operation not permitted