Re: [Nagios-users] No output returned from plugin

2010-11-25 Thread Marius Roets
Hi everybody,

On Thu, Nov 25, 2010 at 12:04 AM, Stuart Browne <
stuart.bro...@ausregistry.com.au> wrote:

> > -Original Message-
> > From: Alexander Haas [mailto:a...@geloet.de]
> > Subject: [Nagios-users] No output returned from plugin
> >
> > Hi list,
> >
> > it's me again :)
> >
> > I wrote a plug-in which does work great. It works from the shell as
> > root, from the shell as nagios and from nagios executed as plug-in.
> >
> > The only problem is when there is an error returned. It does not work
> > when i execute it from nagios as a plug-in and there is an error (=>
> > return code != 0). Every time my plug-in returns anything but zero,
> > Nagios tells me that there is "No output returned from plugin". It does
> > not matter if my script does output its error message on STDOUT or
> > STDERR. Of cause there is an error message visible when I execute my
> > plug-in from a shell.
>
> Nagios doesn't capture anything sent to STDERR, so make sure it is sending
> its output to STDOUT.  Also make sure that the first line returned when an
> error occurs is not an empty line; an empty line is considered "No output".
>
> Perhaps you'd like to run the plugin (as nagios) when it is erroring and
> show us the output?
>
>
> I was just about to ask the same question, when this thread appeared. I
have exactly the same problem. In my case it is a Python script. The output
is fine for the OK state, but missing for other states. I have confirmed:
1) It writes to STDOUT
2) There is no space or black line in the output
3) It works when run from the command line as nagios in the error state

Any suggestions?

Regards
Marius
--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev___
Nagios-users mailing list
Nagios-users@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

[Nagios-users] Reporting

2010-09-01 Thread Marius Roets
Good day,

What are popular applications used for reporting with Nagios. I have
installed NDOUtils, and data is being capture in a MySQL database. I could
process this data myself, but it would be nice if there was an application
that already did this.

Regards
Marius
--
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd___
Nagios-users mailing list
Nagios-users@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