connect to NRPE with java

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
nosuch
Posts: 2
Joined: Tue Apr 19, 2011 4:16 am

connect to NRPE with java

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: connect to NRPE with java

Post 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.
nosuch
Posts: 2
Joined: Tue Apr 19, 2011 4:16 am

Re: connect to NRPE with java

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: connect to NRPE with java

Post 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
Locked