ERROR No output returned from plugin

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
seddikalaouiismaili
Posts: 3
Joined: Wed Jul 11, 2018 3:33 am

ERROR No output returned from plugin

Post by seddikalaouiismaili »

Hi Team ,

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
You can see below the contents of configs (client and monitor server)

==> 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
Attachments
nagios.PNG
nagios.PNG (8.75 KiB) Viewed 7645 times
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ERROR No output returned from plugin

Post by scottwilkerson »

you are showing an error for a service with the serivce_description "Check Warning" in your screenshot, but showed a config for a service called HTTP
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
seddikalaouiismaili
Posts: 3
Joined: Wed Jul 11, 2018 3:33 am

Re: ERROR No output returned from plugin

Post by seddikalaouiismaili »

The problem is solved by defining the check without other arguments in services file configs
so that check command line is

Code: Select all

check_command check_nrpe!check_disk

Best Regards
Seddik
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ERROR No output returned from plugin

Post by scottwilkerson »

seddikalaouiismaili wrote:The problem is solved by defining the check without other arguments in services file configs
so that check command line is

Code: Select all

check_command check_nrpe!check_disk

Best Regards
Seddik
Glad to hear it is solved!

Locking
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked