I have just installed nagios (3.5.0) on my centos-6.8 , and personalized some configs of plugins to monitor performance ,likes (check_http,check_disk ...)
I get this error on nigios's WEB Interface "No output returned from plugin" , the plugins who caused the problem is chek_htp , and he its installed on both servers , Nagios_server and Client_server .
WHen i run the command from CLI on nagios server , the result is OK , command executed
Code: Select all
#/usr/local/nagios/libexec/check_nrpe -H IP_address -c check_http
HTTP OK: HTTP/1.1 200 OK - 252 bytes in 0.003 second response time |time=0.002577s;;;0.000000 size=252B;;;0
==> Nagios Server
#content of host's config .cfg
#########################################
define service{
use generic-service
host_name XXXXXXXXX
service_description HTTP
check_command check_nrpe!check_http
}
define host{
use linux-server ;
host_name XXXXXL ;
alias Serveur XXXXX ;
address XXXXX ;
}
#########################################
# contents commands.cfg
##########################################
define command{
command_name check_http
command_line $USER1$/check_http -I $HOSTADDRESS$ $ARG1$
}
define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c $ARG1$ -a $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$
}
##########################################
==> Client Server
# contents of nrpe.cfg
####################################
allowed_hosts=IP_NAGIOS_SERVER
dont_blame_nrpe=1
allow_bash_command_substitution=1
command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10
command[check_load]=/usr/lib64/nagios/plugins/check_load -r -w .15,.10,.05 -c .30,.25,.20
#command[check_hda1]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1
command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z
command[check_total_procs]=/usr/lib64/nagios/plugins/check_procs -w 150 -c 200
command[check_swap]=/usr/lib64/nagios/plugins/check_swap -w 20 -c 10
command[check_disk]=/usr/lib64/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ -u $ARG4$
command[check_http]=/usr/lib64/nagios/plugins/check_http -I XXXXXX(ip_address)
####################################
You can see belon the error on picture attachement
Thanks for helping
Best Regards
Seddik