No output returned from plug-in

Williams, John John.Williams at bowebellhowell.com
Tue May 15 15:39:55 CEST 2007


When running the check I use the following command:


sudo -u nagios -H nagios -v /etc/nagios/nagios.cfg

and get the resulting output:

newton2:/usr/sbin# sudo -u nagios -H nagios -v /etc/nagios/nagios.cfg

Nagios 1.4
Copyright (c) 1999-2006 Ethan Galstad (nagios at nagios.org)
Last Modified: 05-03-2006
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
        Checked 484 services.
Checking hosts...
        Checked 151 hosts.
Checking host groups...
        Checked 25 host groups.
Checking contacts...
        Checked 28 contacts.
Checking contact groups...
        Checked 26 contact groups.
Checking service escalations...
        Checked 0 service escalations.
Checking host group escalations...
        Checked 0 host group escalations.
Checking service dependencies...
        Checked 26 service dependencies.
Checking host escalations...
        Checked 0 host escalations.
Checking host dependencies...
        Checked 95 host dependencies.
Checking commands...
        Checked 145 commands.
Checking time periods...
        Checked 19 time periods.
Checking for circular paths between hosts...
Checking for circular service execution dependencies...
Checking global event handlers...
Checking obsessive compulsive service processor command...
Checking misc settings...

Total Warnings: 0
Total Errors:   0

Things look okay - No serious problems were detected during the
pre-flight check


I checked through the archives and the suggestions that I found didn't
fix the problem. I agree, it's probably a common problem that I am
having.

I went back through my install of nagios and checked permissions
(against the install that is working) of the following:

/etc/nagios (and sub directories)
/etc/nagios-plugins
/usr/share/nagios (and sub directories)
/usr/lib/nagios (and sub directories)
/usr/sbin/nagios
/usr/sbin/nrpe

I also checked file sizes of the contents in the /etc/nagios directory
against the working server and they matched. I then went though, line by
line, the config files and they matched.

I added the host names of the client to my /etc/host file (it was
already in dns) and that didn't help. I did the same thing on the client
machine with the server names. Same result.

For each host defined in my services config file, not everything is
failing to report back. It seems like a only the checks that would be
defined in the nrpe.cfg file on the target machine. If it's just a
straight plugin check, then it appears to work. For example:

On our netbackup server, the checks for ping and ssh work fine. The
custom commands for checking tape drive status doesn't. 


I also ensured that the package list that was installed on the working
server also matched the problem server.

Thanks
-----Original Message-----
From: Lars Stavholm [mailto:stava at telcotec.se] 
Sent: Tuesday, May 15, 2007 12:09 AM
To: Williams, John
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] No output returned from plug-in

Williams, John wrote:
> I am having an issue with a new nagios server where some of the
plugins
> are showing "No output returned from plugin" on the nagios webpage.
The
> check that is running is a command that is defined on the remote host
in
> nrpe.cfg.

This usually indicates permission problems.

> I looked around the archives and didn't find anything that would fix
the
> problem that I am having.

It's a common enough problem so you should have found something.

> I am running Debian Linux, Apache2, and Nagios 1.4.
> 
> Each remote machine is running nrpe and as the user "nagios" I can
> manually run the check_nrpe -H hostname -c command and it works fine.
> It's when I am running the command through the webpage that it doesn't
work.

When you run the check manually, do you run it as user "nagios"?
/Lars

> The new nagios server is replacing a nagios 1.3 server, which ran fine
(
> the hardware is out of warranty which is why we are replacing it ).
> 
> Each remote host has the IP address of the new nagios server defined
in
> nrpe.cfg and nrpe has been restarted on the remote hosts.
> 
> Doing a tail -f /var/log/nagios/nagios.log will show the command being
> executed, but no reply data.
> 
> Nagios was installed using the Debian "apt-get", so it was a
> pre-packaged bundle from Debian.
> 
> All plugins have been installed.
> 
> On the backup nagios 1.4 server (I am using linux clustering) all
checks
> work fine. I can't find anything different between file ownership,
> permissions, etc... with the 1.4 server that is working and the 1.4
server
> that isn't.
> 
> All checks are being done on the same subnet, so routing isn't an
issue.
> 
> Any help you can give would be greatly appreciated. If you need more
> info on my config I would be happy to post it.
> 
> Thanks in advance
>
------------------------------------------------------------------------
>
------------------------------------------------------------------------
-
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
>
------------------------------------------------------------------------
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list