Nagios 3.x spews debug output on configuration verify on RHEL3 systems

jmoseley at corp.xanadoo.com jmoseley at corp.xanadoo.com
Thu Jan 8 01:24:35 CET 2009


Should the patch below for RHEL3 systems be applied in the official source
release or other documentation so that package maintainers can build RPM's
with the below fix?

Thanks,


James Moseley


----- Forwarded by James Moseley/BTV/PEGASUS on 01/07/2009 06:21 PM -----
                                                                           
             James                                                         
             Moseley/BTV/PEGAS                                             
             US                                                         To 
                                       Nagios Users List                   
             01/05/2009 01:12          <nagios-users at lists.sourceforge.net 
             PM                        >                                   
                                                                        cc 
                                                                           
                                                                   Subject 
                                       Nagios 3.x spews debug output on    
                                       configuration verify on RHEL3       
                                       systems(Document link: James        
                                       Moseley)                            
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           



This same issue was posted on the users list back in March, but didn't
generate any interest.  Essentially, the problem doesn't exist on RHEL 4 or
5 systems and shows up only when Nagios is compiled with ePN support.

On RHEL3, when verifying configuration, I get:

Nagios 3.0.6
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL

Reading configuration data...

LEN: 79, END: 77,
BUF=##############################################################################
BUFNOW:
##############################################################################
LEN: 2, END: 0, BUF=#
BUFNOW: #
LEN: 51, END: 49, BUF=# NAGIOS.CFG - Sample Main Config File for Nagios
BUFNOW: # NAGIOS.CFG - Sample Main Config File for Nagios
*
*
*

The original poster posted a patch that seemed to fix the issue:

include/epn_nagios.h

   #include <fcntl.h>
++ #undef DEBUG
   #undef ctime    /* don't need perl's threaded version */
   #undef printf   /* can't use perl's printf until initialized */

Not sure if this works...

Anyone have any insight?

Thanks,


James Moseley



------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB




More information about the Developers mailing list