[Nagiosplug-devel] Java Plugins

Jos Visser josv at osp.nl
Thu Nov 18 13:39:04 CET 2004


Plugins in Java are possible, and so is calling Java from Perl. The
performance will probably suck because it takes a long time to
initialize the entire Java runtime environment (JVM, libraries)

It would probably be better to:

- Run the check as a daemon and:
  - control that daemon from, or
  - use the whats-its-name protocol to communicate status directly to
    Nagios

If you are really brave you could extend Nagios with native Java plug-in
support. This would entail linking libjvm.sl into Nagios and hacking
some code to call Java methods directly as check_command's... This would
also mean that you don't need to build up the JVM every time...

++Jos.es

On Thu, Nov 18, 2004 at 02:28:16PM -0700 it came to pass that David Robinson wrote:
> I have written Nagios Perl plugins that invoke the weblogic.Admin java class
> to monitor runtime information of my WebLogic Servers.  The weblogic.Admin
> class executes JMX requests to a given WebLogic Server process.  It looks
> like:
> 
>  
> 
>  
> 
> Nagios Process --> Perl Process --> Java Process -->  JMX call across the
> network  --> Remote WebLogic Server Process
> 
>  
> 
>  
> 
> These plugins do not seem to perform very well.  Does anyone have any
> suggestions on improving the performance of plugins for monitoring WebLogic
> Server?  
> 
>  
> 
> I also tried writing a plugin directly in Java, but I'm not sure if this is
> supported.  Nagios did not receive any output from my Java plugins even
> though I was exiting with the proper error codes.  Has anyone created
> plugins in Java?
> 
>  
> 
> Thanks for your assistance,
> 
> Dave
> 

-- 
What's worth reacting to, is worth overreacting to...





More information about the Devel mailing list