Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
I upgraded the OS from NetBSD 5.1.2 to 6.1.2 in June 2013. Looking back through my archives I don't have any of the nagios logs prior to the OS upgrade, so it does seem logical that this may have broke then.
I find it interesting though that I can log to syslog but not to nagios.log. Well [timestamp] (null) gets logged.
When I realized logging was broken I tried to upgraded to Nagios 4.0.0 but encountered compile failures. I posted the problem to this forum but have not found a solution. http://support.nagios.com/forum/viewtop ... =7&t=21531 FYI I also tried compiling 4.0.1 with the same failures.
#make nagios
cd ./base && make
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c logging.c
logging.c: In function 'write_to_log':
logging.c:235:2: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'time_t'
logging.c:235:2: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'time_t'
logging.c: In function 'log_debug_info':
logging.c:558:2: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'time_t'
logging.c:558:2: warning: format '%06lu' expects type 'long unsigned int', but argument 4 has type 'suseconds_t'
logging.c:558:2: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'time_t'
logging.c:558:2: warning: format '%06lu' expects type 'long unsigned int', but argument 4 has type 'suseconds_t'
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o ../common/shared.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o netutils.o notifications.o sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o -Wl,-export-dynamic -lm -lpthread
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
I also opened an internal bug report as well. It should catch Eric's attention. I presume the proper place to follow the bug will now be on tracker.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.