Logging of NEB module

Ethan Galstad nagios at nagios.org
Wed Dec 26 17:00:47 CET 2007


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: nagios at nagios.org
Web:   www.nagios.org

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/




More information about the Developers mailing list