kafelez / jsendnsca

Automatically exported from code.google.com/p/jsendnsca
0 stars 0 forks source link

Nagios Server down handling #35

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi there,

This is more of a question then a feature request but didn't want to open a 
defect instead.. 

I am trying to log events from java apps to Nagios. Is jsendnsca capable of 
handling the scenario when the Nagios server is down? Meaning that the 
jsendnsca creates a new asynchronous tread to Nagios and doesn't block the 
application execution while waiting for Nagios response. I am asking this 
because I just spent considerable time on NagiosAppender for log4j to find out 
that the application hangs when it tries to log an event until the Nagios 
server responds. And for obvious reasons I'd rather not create a new dependency 
for the application uptime.. 

Thanks,
AS

Original issue reported on code.google.com by asimeo...@gmail.com on 7 Jul 2011 at 7:54

GoogleCodeExporter commented 8 years ago
Looks like you need the NonBlockingNagiosPassiveCheckSender which doesnt block 
and was created for exactly the reasons you have stated

https://jsendnsca.googlecode.com/svn/jsendnsca-docs/javadocs-2.0.1/com/googlecod
e/jsendnsca/NonBlockingNagiosPassiveCheckSender.html

Original comment by rajneeshpatel on 7 Jul 2011 at 10:36

GoogleCodeExporter commented 8 years ago
Hi Raj,

Thanks a lot for the quick response. This one seems will do the job. 

A

Original comment by asimeo...@gmail.com on 8 Jul 2011 at 10:46

GoogleCodeExporter commented 8 years ago

Original comment by rajneeshpatel on 9 Jul 2011 at 10:00