$SERVICEOUTPUT$ weirdness

James S. White james at jameswhite.org
Wed Nov 2 17:15:48 CET 2005


Recompile without embperl and perlcache and it works like 2.0b2.

-----------------------------------------------------------------------
James S. White                             primary/voip: (615) 469-0268
928 Mountain Valley Dr.          .O.             mobile: (256) 476-2619
Nashville, TN 37209              ..O               work: (615) 341-8218
http://www.jameswhite.org        OOO        work-mobile: (615) 519-5160
james at jameswhite.org                                fax: (866) 260-5465
-----------------------------------------------------------------------
"Computers are useless. They only give you answers." -- Pablo Picasso

On Tue, 1 Nov 2005, frank wrote:

>
> I think this is the same problem my company hit recently with a fresh
> rollout. Our solution was to use the old 'p1.pl' from 2.0b2 in place of
> the new one from 2.0b4.
>
> YMMV.
> -frank
>
> On Tue, 1 Nov 2005, James S. White wrote:
>
> > Date: Tue, 1 Nov 2005 17:29:16 -0600 (CST)
> > From: James S. White <james at jameswhite.org>
> > To: nagios-devel at lists.sourceforge.net
> > Subject: Re: [Nagios-devel] Re: $SERVICEOUTPUT$ weirdness
> >
> > This seems to be embeded perl related.  Plugin Output: is  '' on all of my
> > custom perl service checks. This started happening when I moved from 2.0b2 to
> > 2.0b4. It seems that checks.c:run_service_check() doesn't like output on
> > stdout or is ignoring it for some reason.
> >
> > What am I missing here?
> >
> > -----------------------------------------------------------------------
> > James S. White                             primary/voip: (615) 469-0268
> > 928 Mountain Valley Dr.          .O.             mobile: (256) 476-2619
> > Nashville, TN 37209              ..O               work: (615) 341-8218
> > http://www.jameswhite.org        OOO        work-mobile: (615) 519-5160
> > james at jameswhite.org                                fax: (866) 260-5465
> > -----------------------------------------------------------------------
> > "Computers are useless. They only give you answers." -- Pablo Picasso
> >
> > On Tue, 18 Oct 2005, Joseph Hardeman wrote:
> >
> >> Greetings,
> >>
> >> I am experiencing sort of the same problem, but my nagiostat is able to read
> >> the $SERVICEOUTPUT$ and the $SERVICEDESC$ fields, but when I send the email
> >> notifications, they are not capturing the data from these fields. Don't know
> >> why, just very curious why it won't pass those couple of variables, will
> >> keep looking at it. I have put in other variables that is being passed and
> >> using those for the notifications.
> >>
> >> Here is what I have put in for the nagiostat:
> >> "$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$"
> >>
> >> Which is passed to a RRD file for parsing by Cacti for graphing.
> >>
> >> Joseph Hardeman
> >>
> >> I upgraded from 2.0b2 to 2.0b4 and now some of my servicechecks say
> >>> "(No output!)" or "(No output returned from plugin)"
> >>>
> >>> When running it by hand produces: "Load : 0.00 0.00 0.00 : OK "
> >>>
> >>> I can copy the 2.0b2 binary of "nagios" from a working (production) system
> >>> and overwrite the 2.0b4 binary and My output is then seen by nagios and
> >>> passed
> >>> to nagiostat.
> >>>
> >>> Further examination showed that $SERVICEOUTPUT$ was empty. Was this
> >>> something
> >>> that was introduced with the 2.0b3 changelog item "Fixed segfaults in CGIs
> >>> where plugin output was NULL"? Or does nagios now do strict output
> >>> checking
> >>> of the servicechecks. This seems to only effect plugins whose output
> >>> doesn't
> >>> take the form: <TAG> <STATUS> - <data> <data>... as in:
> >>>
> >>> CPU OK - 0 0 99 246458 43619 40728186 2312
> >>>
> >>> I hate the idea that I will have to re-configure nagiostat's regular
> >>> expressions.
> >>>
> >>> Please advise.
> >>>
> >>> -----------------------------------------------------------------------
> >>> James S. White primary/voip: (615) 469-0268
> >>> 928 Mountain Valley Dr. .O. mobile: (256) 476-2619
> >>> Nashville, TN 37209 ..O work: (615) 341-8218
> >>> http://www.jameswhite.org OOO work-mobile: (615) 519-5160
> >>> james at jameswhite.org fax: (866) 260-5465
> >>> -----------------------------------------------------------------------
> >>> "Computers are useless. They only give you answers." -- Pablo Picasso
> >>>
> >>>
> >>>
> >>> -------------------------------------------------------
> >>> This SF.Net email is sponsored by:
> >>> Power Architecture Resource Center: Free content, downloads, discussions,
> >>> and more. http://solutions.newsforge.com/ibmarch.tmpl
> >>> _______________________________________________
> >>> 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
> >>>
> >>>
> >>>
> >>>
> >>> --__--__--
> >>>
> >>> _______________________________________________
> >>> Nagios-devel mailing list
> >>> Nagios-devel at lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/nagios-devel
> >>>
> >>>
> >>> End of Nagios-devel Digest
> >>>
> >>
> >
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by:
> > Tame your development challenges with Apache's Geronimo App Server. Download
> > it for free - -and be entered to win a 42" plasma tv or your very own
> > Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> > _______________________________________________
> > Nagios-devel mailing list
> > Nagios-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/nagios-devel
> >
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php




More information about the Developers mailing list