(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
=09
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]