Page 1 of 1

Re: [Nagios-devel] better error message

Posted: Fri May 24, 2002 8:07 pm
by Guest
I guess I was thinking of my_system(), which does log an error
message about missing scripts, but that only gets called for event
handlers, notifications, etc. I just changed the plugin output and
the warning message that gets logged for return codes of 126 and 127.
I believe that some shell returns a code of 126 if a script it
missing, so things should get caught. Fixes should be in CVS
shortly.

On 24 May 2002 at 0:59, Subhendu Ghosh wrote:

> That would do just fine.
>
> The current log file message doesn't mention any missing file...
>
> ------
> [1022171334] Warning: Return code of 127 for check of service 'Wired'
> on host 'wave' was out of bounds.
> [1022171334] SERVICE ALERT: wave;Wired;CRITICAL;SOFT;1;(Return code
> of 127 is out of bounds)
> -----
>
> thanks
> -sg
>
> On Thu, 23 May 2002, Ethan Galstad wrote:
>
> > A message gets logged whenever a return code of 127 is found. The
> > log file message explains that the file may be missing. I suppose
> > the plugin output could also be modified, but I didn't do it because
> > I wasn't sure if this worked across different Unices. I guess
> > there's no harm in modifying the output to indicate the file may be
> > missing as well. Does something like "Return code 127 out of bounds -
> > plugin may be missing" sound reasonable?
> >
> >
> >
> > On 23 May 2002 at 23:35, Subhendu Ghosh wrote:
> >
> > >
> > > Hi Ethan
> > >
> > > Is there a way to get a better error message if nagios cannot find the
> > > specified plugin in the appropriate location?
> > >
> > > Currently it reports "Return 127 out of bounds" which lead to think that
> > > the plugin is not working - when it actually wasn't there.
> > >
> > > Ran across this while migrating an installation. config files were corect
> > > but I had forgotten to install some of add-on plugins.
> > >
> > > -sg
> >
> >
> > Ethan Galstad,
> > Nagios Developer
> > ---
> > Email: nagios@nagios.org
> > Website: http://www.nagios.org
> >
>
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
>
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/lis ... gios-devel
>



Ethan Galstad,
Nagios Developer
---
Email: nagios@nagios.org
Website: http://www.nagios.org






This post was automatically imported from historical nagios-devel mailing list archives
Original poster: nagios@nagios.org