[Nagios-devel] Nagios 3.x spews debug output on configuration
Posted: Thu Jan 08, 2009 12:24 am
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
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
++ #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
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]