We've moved to a new support system!

The Nagios Answer Hub is a place where you can get help with technical questions from our experts. There, you can quickly open tickets and join discussion boards.

Request Nagios Answer Hub access here: https://info.nagios.com/answer-hub-access-new-users

After completing the access form, you will be given access to a portal where new tickets can be created. We will keep the old customer forum sections and ticket system available for current cases to be resolved.

Go to the Answer Hub

Re: [Nagios-devel] better error message

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Re: [Nagios-devel] better error message

Postby Guest » Fri May 24, 2002 8:07 pm

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/listinfo/nagios-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
Guest
 

Return to Community Support

Who is online

Users browsing this forum: No registered users and 20 guests