The NagiosAppender is a pure Java implementation of a Log4j appender which allows the developer/administrator to send log records to Nagios via the nsca server (using the push model). This project leverages the significant adoption of Log4j for logging in Java applications, and the growing popularity of Nagios for monitoring systems and applications, to provide a simple solution for developers/administrators whose only alternative is to implement a polling function against against the output of a standard Log4j appender.
The log4j configuration file provides for user specific mappings between Log4j levels and Nagios levels. The configuration file also allows the user to select whether to set the Nagios 'service' and 'host' programmatically via Log4j MDC, or via the config file.
The latest version, 2.0.0, supports asynchronous message delivery, tunable timeouts, and a buffer for redelivery support.
NOTE: the initial releases did not support encryption of any kind, but as of version 1.0.0, XOR encryption is supported.