|
[ Return To FAQ Index | Search The FAQs ]
|
|
| Title: | Sending Passive Checks Directly from Java |
| FAQ ID: | F0322 |
| Submitted By: | Jar Lyons |
| Last Updated: | 03/14/2007 |
|
| 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 |
|