Page 1 of 1

connect to NRPE with java

Posted: Tue Apr 19, 2011 4:22 am
by nosuch
Hi

I have a nagios environment setup and monitoring a couple of hosts. But now i need to know if it is possible to connect to one of these hosts with java and to execute my own query against it? So that i could wrap it in a bean.

Any response would be greatly appreciated.
Winston

Re: connect to NRPE with java

Posted: Tue Apr 19, 2011 3:40 pm
by mguthrie
I would try checking exchange.nagios.org and see if someone has already written something that does this. We don't do a whole lot with java here, but I know there are some community tools out there that might get you what you need.

Re: connect to NRPE with java

Posted: Wed Apr 20, 2011 2:05 am
by nosuch
It does not need to be Java. I could use any code. Just as long as i have an example and know that its possible. Then i could simulate it in java.

Re: connect to NRPE with java

Posted: Thu Apr 21, 2011 9:24 am
by mguthrie
Are you talking about an event handler, that would respond to a state change? Or just a regular check?

Here's a doc on event handlers, and you could most certainly write your own if that would accomplish what you need.
http://nagios.sourceforge.net/docs/3_0/ ... dlers.html