[Nagios-devel] Service/Host Alert Notifications not Logging...

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.
Locked
Guest

[Nagios-devel] Service/Host Alert Notifications not Logging...

Post by Guest »

I've successfully compiled Nagios 1.06b on a Linux system, however the
Host/Service Alerts are not logging to the the log file correctly. I've
made sure that the "log_notifications" is turned on and that the file is
present/has correct permissions/etc.

I checked the code ("logging.c") and noticed that the calls to
"write_to_logs_and_console" are being with a log datatype of
"log_options". I changed this to be "HOST_ALERT_NOTIFICATION" and
"SERVICE_ALERT_NOTIFICATION" respectively and everything appears to be
working now. This is around lines 191 and 246. I know this is not the
correct fix, so I thought I would make the developers aware of it.

Thanks for a great tool.

P.S. I love the DB integration and I was looking forward to more
integration, not the removal of it. Please keep up the discussion of an
abstract data layer that facilitates DB interaction, XML, and other
options while allowing for simple builds. I believe that it can be done.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Quinn Team Incorporated
Micah T. Quinn - President
(Voice) 281.465.4311
(Fax) 281.465.4434
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=







This post was automatically imported from historical nagios-devel mailing list archives
Original poster: mquinn@quinnteam.com
Locked