Wildcard in servicegroup causes segmentation fault
Bernd Adamowicz
bead at combots.com
Mon Jul 10 14:43:03 CEST 2006
(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
More information about the Developers
mailing list