[ Return To FAQ Index | Search The FAQs ]
|Title:||Sending Passive Checks Directly from Java|
|Submitted By:||Jar Lyons |
|Description:||NSCA is a very powerful tool for getting information into Nagios.
Runtime.exec("send_nsca") is the only direct solution for sending this information to Nagios, but it comes at a significant cost. |
|Solution:||By using log4j, and the NagiosAppender (http://sourceforge.net/projects/nagiosappender/), you can send passive checks directly to Nagios without incurring the overhead of Runtime.exec(...).
Also, using the log4j configuration files, you can easily redirect any legacy logging calls to Nagios without any code changes. |
|Keywords:||nsca send_nsca Java log4j |