Re: [Nagios-devel] Wildcard in servicegroup causes segmentationfault

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Wildcard in servicegroup causes segmentationfault

Post by Guest »

This is a multi-part message in MIME format.

------=_NextPart_000_002A_01C6A406.8135BEE0
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Sorry I missed one part of your email, it seems that you already use the
latest tarball.

For the date, it's correct. Looks like Ethan only change it for releases.

Thomas

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf
> Of Thomas Guyot-Sionnest
> Sent: July 10, 2006 9:46
> To: Bernd Adamowicz; [email protected]
> Subject: Re: [Nagios-devel] Wildcard in servicegroup causes
> segmentationfault
>
> I'm not sure if that will help, but can you try the latest
> 2.x cvs tarball?
>
> You can download it from http://nagios.sourceforge.net/download/cvs/
>
> It fixed a similar segfault for me.
>
> Thomas
>
> > -----Original Message-----
> > From: [email protected]
> > [mailto:[email protected]] On Behalf
> > Of Bernd Adamowicz
> > Sent: July 10, 2006 8:44
> > To: [email protected]
> > Subject: [Nagios-devel] Wildcard in servicegroup causes
> > segmentation fault
> >
> > (Hope I didn't cause too much confusion since I already posted this
> > message once bevore beeing a member of this list.)
> >
> >
> >
> > Hi All,
> >
> >
> >
> > I'm facing the problem, that the pre flight check from nagios causes
> > a segmentation fault, if the 'member' variable of a servicegroup
> > contains a '*' wildcard. I have just compiled the latest
> CVS tarball
> > because there have been some similiar bugs reported, but it didn't
> > fix my problem.
> >
> >
> >
> > This is the part of my configuration that causes the problem:
> >
> >
> >
> > # causes seg fault
> >
> > define servicegroup{
> >
> > servicegroup_name Swapspace
> >
> > alias Services checking the swap space on
> > disk
> >
> > members BSS-MGMT-SMServer*,Swapspace
> >
> >
> >
> > }
> >
> >
> >
> > Of course there is at least one host which matches the
> > pattern 'BSS-MGMT-
> > SMServer*,'.
> >
> > Seems the '*' after 'BSS-MGMT-SMServer' causes the problem. If I
> > switch to a single host name, everything works fine:
> >
> >
> >
> > # causes no seg fault
> >
> > define servicegroup{
> >
> > servicegroup_name Swapspace
> >
> > alias Services checking the swap space on
> > disk
> >
> > members BSS-MGMT-SMServer-Test04b,Swapspace
> >
> > }
> >
> >
> >
> > I run Nagios in GDB. This is the output:
> >
> >
> >
> > >nagios-2-x-cvs/base # gdb nagios
> >
> > (gdb) run -v /usr/local/nagios/etc/nagios.cfg
> >
> > Starting program: /root/temp/nagios-2-x-cvs/base/nagios -v
> > /usr/local/nag
> > ios/etc/nagios.cfg
> >
> > [Thread debugging using libthread_db enabled]
> >
> > [New Thread 182901004448 (LWP 424)]
> >
> >
> >
> > Nagios 2.4
> >
> > Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
> >
> > Last Modified: 05-31-2006
> >
> > License: GPL
> >
> >
> >
> > Reading configuration data...
> >
> >
> >
> >
> >
> > Program received signal SIGSEGV, Segmentation fault.
> >
> > [Switching to Thread 182901004448 (LWP 424)]
> >
> > 0x0000002a95a452c5 in free () from /lib64/tls/libc.so.6
> >
> > (gdb)
> >
> > -------- end of gdb output
> >
> >
> >
> > Maybe this will give someone of you a hint, what might have
> happened.
> > (I was a little bit confused about the last modified date of
> > 05-31-2006,
> > but I'm shure I got the latest tarball.)
> >
> >
> >
> > Maybe someone has help. Thanks in advance.
> >
> >
> >
> > - Bernd Adamowicz (Bernd)
> >
> >
> >
> > -----------------------
> >
> > The mailing list archive is found here:
> >
> > http://www.nagiosexchange.org/nagios-devel.33.0.html
> >
> >
> >
> >
> > --------------------------------------------------------------
> > -----------
> > Using Tomcat but need to do more? Need to support web
> > services, security?
> > Get stuff done quickly with pre-integrated technology to make
> > your

...[email truncated]...


This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked