Nagios 3.0 RC2: Segmentation faults after starting

Christian Schneemann cschneemann at suse.de
Thu Feb 14 16:19:42 CET 2008


On Thursday February 14 2008 03:34:17 pm Hendrik Bäcker wrote:
> Christian Schneemann schrieb:
> > On Thursday February 14 2008 03:05:54 pm Hendrik Bäcker wrote:
> >>  Well - what happend to your path "/var/spool/nagios" ?
> >
> > Nothing... I'm seeing files appearing, and then it segfaults after a few
> > files..
>
> Ok... digging the nose.
>
> Please show us:
>
> * su - nagios (or whatever your nagios user is named)
> * ls -la of your /var/spool/nagios/
-rw-------  1 nagios nagcmd    0 2008-02-14 14:18 cPcXY4P.ok
-rw-------  1 nagios nagcmd  381 2008-02-14 14:44 cPWIs5P
-rw-------  1 nagios nagcmd    0 2008-02-14 14:44 cPWIs5P.ok
-rw-------  1 nagios nagcmd  377 2008-02-14 14:18 cpZNP6d
-rw-------  1 nagios nagcmd    0 2008-02-14 14:18 cpZNP6d.ok
-rw-------  1 nagios nagcmd  385 2008-02-14 14:32 cQtZrf2
-rw-------  1 nagios nagcmd    0 2008-02-14 14:32 cQtZrf2.ok
-rw-------  1 nagios nagcmd  386 2008-02-14 14:59 cqUEIf3
-rw-------  1 nagios nagcmd    0 2008-02-14 14:59 cqUEIf3.ok
-rw-------  1 nagios nagcmd  384 2008-02-14 14:44 cqXk6nF
-rw-------  1 nagios nagcmd    0 2008-02-14 14:44 cqXk6nF.ok
-rw-------  1 nagios nagcmd  375 2008-02-14 15:47 cR5nP9O
-rw-------  1 nagios nagcmd    0 2008-02-14 15:47 cR5nP9O.ok
-rw-------  1 nagios nagcmd  435 2008-02-14 14:18 cR8cJPW
-rw-------  1 nagios nagcmd    0 2008-02-14 14:18 cR8cJPW.ok
-rw-------  1 nagios nagcmd  371 2008-02-14 14:32 cRTNsvX
-rw-------  1 nagios nagcmd    0 2008-02-14 14:32 cRTNsvX.ok
-rw-------  1 nagios nagcmd  384 2008-02-14 14:44 cRUQDTF
-rw-------  1 nagios nagcmd    0 2008-02-14 14:44 cRUQDTF.ok
-rw-------  1 nagios nagcmd  381 2008-02-14 14:25 cs4fsj4
-rw-------  1 nagios nagcmd    0 2008-02-14 14:25 cs4fsj4.ok
-rw-------  1 nagios nagcmd  375 2008-02-14 14:59 cSgDgih
-rw-------  1 nagios nagcmd    0 2008-02-14 14:59 cSgDgih.ok
-rw-------  1 nagios nagcmd  374 2008-02-14 14:25 cSknMtX
-rw-------  1 nagios nagcmd    0 2008-02-14 14:25 cSknMtX.ok
-rw-------  1 nagios nagcmd  380 2008-02-14 15:47 cSx9B27
-rw-------  1 nagios nagcmd    0 2008-02-14 15:47 cSx9B27.ok
-rw-------  1 nagios nagcmd  380 2008-02-14 14:33 cu57GWp
-rw-------  1 nagios nagcmd    0 2008-02-14 14:33 cu57GWp.ok
-rw-------  1 nagios nagcmd  384 2008-02-14 14:32 cvrxYq0
-rw-------  1 nagios nagcmd    0 2008-02-14 14:32 cvrxYq0.ok
-rw-------  1 nagios nagcmd  380 2008-02-14 15:47 cYgz9OI
-rw-------  1 nagios nagcmd    0 2008-02-14 15:47 cYgz9OI.ok
-rw-------  1 nagios nagcmd  408 2008-02-14 14:18 cYSfmlB
-rw-------  1 nagios nagcmd    0 2008-02-14 14:18 cYSfmlB.ok
-rw-------  1 nagios nagcmd  381 2008-02-14 14:59 cZj8qkY
-rw-------  1 nagios nagcmd    0 2008-02-14 14:59 cZj8qkY.ok
prw-rw----  1 nagios nagcmd    0 2008-02-14 10:56 nagios.cmd
> * cat /var/spool/nagios/c***** (catch a file without the *.ok)
### Active Check Result File ###
file_time=1202995503

### Nagios Host Check Result ###
# Time: Thu Feb 14 14:25:03 2008
host_name=10.0.9.2
check_type=0
check_options=0
scheduled_check=1
reschedule_check=1
latency=0.956000
start_time=1202995503.957236
finish_time=1202995504.24686
early_timeout=0
exited_ok=1
return_code=0
output=PING OK - Packet loss = 0%, RTA = 1.46 ms\n

>
> -
> Hendrik

And here some more background info:
nagios is compiled with --enable-embedded-perl and embedded perl is 
deactivated in thte nagios.cfg. 

If I enable it in the nagios.cfg nagios runs fine without segfaulting. Do you 
have any ideas?

-- 
Christian Schneemann

-------------------------------------
SUSE LINUX Products GmbH,
Maxfeldstr. 5, D - 90409 Nürnberg

Phone:  +49 (0)911 - 740 53 0
e-mail: cschneemann at suse.de
-------------------------------------
SUSE LINUX Products GmbH, GF: Markus Rex
HRB 16746 (AG Nürnberg)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/




More information about the Developers mailing list