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

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 segmentation

Post by Guest »

This is a multi-part message in MIME format.

------=_NextPart_000_0025_01C6A405.AFA58590
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

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 job easier
> Download IBM WebSphere Application Server v.1.0.1 based on
> Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk ... bid=263057&
dat=121642
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel
>

------=_NextPart_000_0025_01C6A405.AFA58590
Content-Type: application/x-pkcs7-signature;
name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIIwTCCAkkw
ggGyoAMCAQICAw+pBzANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh
d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt
YWlsIElzc3VpbmcgQ0EwHhcNMDUxMDEzMjE1NDQ2WhcNMDYxMDEzMj

...[email truncated]...


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