<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal">Hello Guys,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I have tried to install Nagios 3.2.0 version on Linux CentOS 5.2 and I have got a issue:<o:p></o:p></p>
<p class="MsoNormal">When starting, it ends with segmentation fault:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[root@mon bin]# ./nagios -d /usr/local/nagios_new/etc/nagios.cfg<o:p></o:p></p>
<p class="MsoNormal">Segmentation fault<o:p></o:p></p>
<p class="MsoNormal">[root@mon bin]#<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Despite the fact that checking the config works OK:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[root@mon bin]# ./nagios -v /usr/local/nagios_new/etc/nagios.cfg<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Nagios Core 3.2.0<o:p></o:p></p>
<p class="MsoNormal">Copyright (c) 2009 Nagios Core Development Team and Community Contributors<o:p></o:p></p>
<p class="MsoNormal">Copyright (c) 1999-2009 Ethan Galstad<o:p></o:p></p>
<p class="MsoNormal">Last Modified: 08-12-2009<o:p></o:p></p>
<p class="MsoNormal">License: GPL<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Website: http://www.nagios.org<o:p></o:p></p>
<p class="MsoNormal">Reading configuration data...<o:p></o:p></p>
<p class="MsoNormal">   Read main config file okay...<o:p></o:p></p>
<p class="MsoNormal">Processing object config file '/usr/local/nagios_new/etc/objects/contactgroups.cfg'...<o:p></o:p></p>
<p class="MsoNormal">Processing object config file '/usr/local/nagios_new/etc/objects/timeperiods.cfg'...<o:p></o:p></p>
<p class="MsoNormal">Processing object config file '/usr/local/nagios_new/etc/objects/templates.cfg'...<o:p></o:p></p>
<p class="MsoNormal">Processing object config directory '/usr/local/nagios_new/etc/output'...<o:p></o:p></p>
<p class="MsoNormal">Processing object config file '/usr/local/nagios_new/etc/output/Cluj Application srv.cfg'...<o:p></o:p></p>
<p class="MsoNormal">Processing object config file '/usr/local/nagios_new/etc/output/Cluj Interxion srv.cfg'...<o:p></o:p></p>
<p class="MsoNormal">Processing object config file '/usr/local/nagios_new/etc/output/Cluj Network srv.cfg'...<o:p></o:p></p>
<p class="MsoNormal">Processing object config file '/usr/local/nagios_new/etc/output/Cluj VPNs.cfg'...<o:p></o:p></p>
<p class="MsoNormal">Processing object config file '/usr/local/nagios_new/etc/output/commands.cfg'...<o:p></o:p></p>
<p class="MsoNormal">Processing object config file '/usr/local/nagios_new/etc/output/Cluj ISP EuroWeb.cfg'...<o:p></o:p></p>
<p class="MsoNormal">Processing object config file '/usr/local/nagios_new/etc/output/Cluj UPS.cfg'...<o:p></o:p></p>
<p class="MsoNormal">Processing object config file '/usr/local/nagios_new/etc/output/Cluj ISP RDS.cfg'...<o:p></o:p></p>
<p class="MsoNormal">Processing object config file '/usr/local/nagios_new/etc/output/Cluj Redbus srv.cfg'...<o:p></o:p></p>
<p class="MsoNormal">Processing object config file '/usr/local/nagios_new/etc/output/Cluj London.cfg'...<o:p></o:p></p>
<p class="MsoNormal">Processing object config file '/usr/local/nagios_new/etc/output/sgroup.cfg'...<o:p></o:p></p>
<p class="MsoNormal">   Read object config files okay...<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Running pre-flight check on configuration data...<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Checking services...<o:p></o:p></p>
<p class="MsoNormal">        Checked 225 services.<o:p></o:p></p>
<p class="MsoNormal">Checking hosts...<o:p></o:p></p>
<p class="MsoNormal">        Checked 74 hosts.<o:p></o:p></p>
<p class="MsoNormal">Checking host groups...<o:p></o:p></p>
<p class="MsoNormal">        Checked 9 host groups.<o:p></o:p></p>
<p class="MsoNormal">Checking service groups...<o:p></o:p></p>
<p class="MsoNormal">        Checked 0 service groups.<o:p></o:p></p>
<p class="MsoNormal">Checking contacts...<o:p></o:p></p>
<p class="MsoNormal">        Checked 4 contacts.<o:p></o:p></p>
<p class="MsoNormal">Checking contact groups...<o:p></o:p></p>
<p class="MsoNormal">        Checked 5 contact groups.<o:p></o:p></p>
<p class="MsoNormal">Checking service escalations...<o:p></o:p></p>
<p class="MsoNormal">        Checked 450 service escalations.<o:p></o:p></p>
<p class="MsoNormal">Checking service dependencies...<o:p></o:p></p>
<p class="MsoNormal">        Checked 0 service dependencies.<o:p></o:p></p>
<p class="MsoNormal">Checking host escalations...<o:p></o:p></p>
<p class="MsoNormal">        Checked 148 host escalations.<o:p></o:p></p>
<p class="MsoNormal">Checking host dependencies...<o:p></o:p></p>
<p class="MsoNormal">        Checked 73 host dependencies.<o:p></o:p></p>
<p class="MsoNormal">Checking commands...<o:p></o:p></p>
<p class="MsoNormal">        Checked 107 commands.<o:p></o:p></p>
<p class="MsoNormal">Checking time periods...<o:p></o:p></p>
<p class="MsoNormal">        Checked 4 time periods.<o:p></o:p></p>
<p class="MsoNormal">Checking for circular paths between hosts...<o:p></o:p></p>
<p class="MsoNormal">Checking for circular host and service dependencies...<o:p></o:p></p>
<p class="MsoNormal">Checking global event handlers...<o:p></o:p></p>
<p class="MsoNormal">Checking obsessive compulsive processor commands...<o:p></o:p></p>
<p class="MsoNormal">Checking misc settings...<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Total Warnings: 0<o:p></o:p></p>
<p class="MsoNormal">Total Errors:   0<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Things look okay - No serious problems were detected during the pre-flight check<o:p></o:p></p>
<p class="MsoNormal">[root@mon bin]#<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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.
<o:p></o:p></p>
<p class="MsoNormal">Below is a try to find the cause:<o:p></o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">[root@rmon bin]# gdb ./nagios<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">GNU gdb Red Hat Linux (6.5-37.el5_2.2rh)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">Copyright (C) 2006 Free Software Foundation, Inc.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">GDB is free software, covered by the GNU General Public License, and you are<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">welcome to change it and/or distribute copies of it under certain conditions.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">Type "show copying" to see the conditions.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">There is absolutely no warranty for GDB.  Type "show warranty" for details.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">This GDB was configured as "i386-redhat-linux-gnu"...(no debugging symbols found)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">Using host libthread_db library "/lib/libthread_db.so.1".<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(gdb) run -d /usr/local/nagios_new/etc/nagios.cfg<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">Starting program: /usr/local/nagios_new/bin/nagios -d /usr/local/nagios_new/etc/nagios.cfg<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">[1]+  Stopped                 gdb ./nagios<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">[root@rocjmon02 bin]# fg<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">gdb ./nagios<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(no debugging symbols found)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(no debugging symbols found)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(no debugging symbols found)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(no debugging symbols found)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(no debugging symbols found)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(no debugging symbols found)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(no debugging symbols found)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(no debugging symbols found)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(no debugging symbols found)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(no debugging symbols found)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">[Thread debugging using libthread_db enabled]<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(no debugging symbols found)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">[New Thread -1208183104 (LWP 21792)]<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(no debugging symbols found)<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">Program received signal SIGSEGV, Segmentation fault.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">[Switching to Thread -1208183104 (LWP 21792)]<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">0x00938be1 in Perl_get_cv () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(gdb) bt<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">#0  0x00938be1 in Perl_get_cv () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">#1  0x0093b036 in perl_free () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">#2  0x0093d5f9 in perl_parse () from /usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE/libperl.so<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">#3  0x080905b7 in init_embedded_perl ()<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">#4  0x080579f5 in main ()<o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;
font-family:"Arial","sans-serif"">(gdb)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It seems that this is due to perl, but I cannot figure out what exactly causes this.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">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:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[1258446070.459957] [001.0] [pid=23617] drop_privileges() start<o:p></o:p></p>
<p class="MsoNormal">[1258446070.460128] [004.0] [pid=23617] Original UID/GID: 0/0<o:p></o:p></p>
<p class="MsoNormal">[1258446070.471956] [004.0] [pid=23617] New UID/GID: 500/501<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Could someone help me with this?<o:p></o:p></p>
<p class="MsoNormal">Or just point out what’s wrong with perl?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Many Thanks,<o:p></o:p></p>
<p class="MsoNormal">Constantin.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<hr>
<font face="Verdana" color="Gray" size="-2">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.<br>
<br>
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.<br>
</font>
</body>
</html>