Hello Guys,
I have tried to install Nagios 3.2.0 version on Linux CentOS 5.2 and I have got
a issue:
When starting, it ends with segmentation fault:
[r...@mon bin]# ./nagios -d /usr/local/nagios_new/etc/nagios.cfg
Segmentation fault
[r...@mon bin]#
Despite the fact that checking the config works OK:
[r...@mon bin]# ./nagios -v /usr/local/nagios_new/etc/nagios.cfg
Nagios Core 3.2.0
Copyright (c) 2009 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-12-2009
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file
'/usr/local/nagios_new/etc/objects/contactgroups.cfg'...
Processing object config file
'/usr/local/nagios_new/etc/objects/timeperiods.cfg'...
Processing object config file
'/usr/local/nagios_new/etc/objects/templates.cfg'...
Processing object config directory '/usr/local/nagios_new/etc/output'...
Processing object config file '/usr/local/nagios_new/etc/output/Cluj
Application srv.cfg'...
Processing object config file '/usr/local/nagios_new/etc/output/Cluj Interxion
srv.cfg'...
Processing object config file '/usr/local/nagios_new/etc/output/Cluj Network
srv.cfg'...
Processing object config file '/usr/local/nagios_new/etc/output/Cluj
VPNs.cfg'...
Processing object config file '/usr/local/nagios_new/etc/output/commands.cfg'...
Processing object config file '/usr/local/nagios_new/etc/output/Cluj ISP
EuroWeb.cfg'...
Processing object config file '/usr/local/nagios_new/etc/output/Cluj UPS.cfg'...
Processing object config file '/usr/local/nagios_new/etc/output/Cluj ISP
RDS.cfg'...
Processing object config file '/usr/local/nagios_new/etc/output/Cluj Redbus
srv.cfg'...
Processing object config file '/usr/local/nagios_new/etc/output/Cluj
London.cfg'...
Processing object config file '/usr/local/nagios_new/etc/output/sgroup.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 225 services.
Checking hosts...
Checked 74 hosts.
Checking host groups...
Checked 9 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 4 contacts.
Checking contact groups...
Checked 5 contact groups.
Checking service escalations...
Checked 450 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 148 host escalations.
Checking host dependencies...
Checked 73 host dependencies.
Checking commands...
Checked 107 commands.
Checking time periods...
Checked 4 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
[r...@mon bin]#
The Nagios is compiled with embedded perl support (as I have a some plugins in
Perl). No errors or warnings appeared while configuring and compiling the code.
Below is a try to find the cause:
[r...@rmon bin]# gdb ./nagios
GNU gdb Red Hat Linux (6.5-37.el5_2.2rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols
found)
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run -d /usr/local/nagios_new/etc/nagios.cfg
Starting program: /usr/local/nagios_new/bin/nagios -d
/usr/local/nagios_new/etc/nagios.cfg
[1]+ Stopped gdb ./nagios
[r...@rocjmon02 bin]# fg
gdb ./nagios
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
(no debugging symbols found)
[New Thread -1208183104 (LWP 21792)]
(no debugging symbols found)
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208183104 (LWP 21792)]
0x00938be1 in Perl_get_cv () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
(gdb) bt
#0 0x00938be1 in Perl_get_cv () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#1 0x0093b036 in perl_free () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#2 0x0093d5f9 in perl_parse () from
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so
#3 0x080905b7 in init_embedded_perl ()
#4 0x080579f5 in main ()
(gdb)
It seems that this is due to perl, but I cannot figure out what exactly causes
this.
Also have tried to run Nagios in debug mode (with debug_level=-1,
debug_verbosity=2) but this is all I got in nagios.debug:
[1258446070.459957] [001.0] [pid=23617] drop_privileges() start
[1258446070.460128] [004.0] [pid=23617] Original UID/GID: 0/0
[1258446070.471956] [004.0] [pid=23617] New UID/GID: 500/501
Could someone help me with this?
Or just point out what’s wrong with perl?
Many Thanks,
Constantin.
________________________________
The information in this email is confidential and may be legally privileged. It
is intended solely for the addressee. Any opinions expressed are mine and do
not necessarily represent the opinions of the Company. Emails are susceptible
to interference. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance on
it, is strictly prohibited and may be unlawful. If you have received this
message in error, do not open any attachments but please notify the EndavaIT
Service Desk on (+44 (0)870 423 0187), and delete this message from your
system. The sender accepts no responsibility for information, errors or
omissions in this email, or for its use or misuse, or for any act committed or
omitted in connection with this communication. If in doubt, please verify the
authenticity of the contents with the sender. Please rely on your own virus
checkers as no responsibility is taken by the sender for any damage rising out
of any bug or virus infection.
Endava Limited is a company registered in England under company number 5722669
whose registered office is at 125 Old Broad Street, London, EC2N 1AR, United
Kingdom. Endava Limited is the Endava group holding company and does not
provide any services to clients. Each of Endava Limited and its subsidiaries is
a separate legal entity and has no liability for another such entity's acts or
omissions. Please refer to the “Legal” section on our website for a list of
legal entities.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null