Wildcard in servicegroup causes segmentation fault

Thomas Guyot-Sionnest Thomas at zango.com
Mon Jul 10 15:46:15 CEST 2006


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: nagios-devel-bounces at lists.sourceforge.net 
> [mailto:nagios-devel-bounces at lists.sourceforge.net] On Behalf 
> Of Bernd Adamowicz
> Sent: July 10, 2006 8:44
> To: nagios-devel at lists.sourceforge.net
> 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&kid=120709&bid=263057&
dat=121642
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3022 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20060710/c8892afb/attachment.bin>
-------------- next part --------------

-------------------------------------------------------------------------
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&kid=120709&bid=263057&dat=121642
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list