Re: [Nagios-devel] Logging of NEB module
Posted: Wed Dec 26, 2007 8:00 am
Tobias Mucke wrote:
> Hi everybody,
>
> I am writing a Nagios event broker module. Actually I am writing
> functions for logging purposes. Module ndomod seems to log exclusively
> by using the internal Nagios logging function write_to_all_logs.
>
> I am planning to provide a separate log and debug file but think about
> to support also logging to the Nagios log file. Do you see any side
> effects by this latter approach?
>
> Would be nice to get some ideas concerning this. Thanks.
>
> Tobias
As long as the log messages don't collide with the same types of entries
coming out of the Nagios daemon you should be fine. One way to make
sure this doesn't happen is prepend "yourmodulename: " to each of the
entries your modules writes to the main Nagios log file.
Ethan Galstad
Nagios Developer
___
Email: [email protected]
Web: www.nagios.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
> Hi everybody,
>
> I am writing a Nagios event broker module. Actually I am writing
> functions for logging purposes. Module ndomod seems to log exclusively
> by using the internal Nagios logging function write_to_all_logs.
>
> I am planning to provide a separate log and debug file but think about
> to support also logging to the Nagios log file. Do you see any side
> effects by this latter approach?
>
> Would be nice to get some ideas concerning this. Thanks.
>
> Tobias
As long as the log messages don't collide with the same types of entries
coming out of the Nagios daemon you should be fine. One way to make
sure this doesn't happen is prepend "yourmodulename: " to each of the
entries your modules writes to the main Nagios log file.
Ethan Galstad
Nagios Developer
___
Email: [email protected]
Web: www.nagios.org
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]