ERROR No output returned from plugin

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

ERROR No output returned from plugin

Postby seddikalaouiismaili » Wed Jul 11, 2018 5:08 am

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 190 times
seddikalaouiismaili
 
Posts: 3
Joined: Wed Jul 11, 2018 3:33 am

Re: ERROR No output returned from plugin

Postby scottwilkerson » Wed Jul 11, 2018 2:46 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12048
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: ERROR No output returned from plugin

Postby seddikalaouiismaili » Thu Jul 12, 2018 8:35 am

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
seddikalaouiismaili
 
Posts: 3
Joined: Wed Jul 11, 2018 3:33 am

Re: ERROR No output returned from plugin

Postby scottwilkerson » Thu Jul 12, 2018 10:44 am

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12048
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: Google [Bot], hbackus and 18 guests