Java Plugins?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sumitg
Posts: 1
Joined: Fri Aug 10, 2012 3:22 am

Java Plugins?

Post by sumitg »

We are in the process of finalizing Nagios Xi as our monitoring solution, one query:

If we write a plugin in Java. Is then each time the test is executed a java vm started?
I have downloaded a check_jmx plugin and it looks like this
http://exchange.nagios.org/directory/Pl ... mx/details

#!/bin/sh
#
# Nagios plugin to monitor Java JMX (http://java.sun.com/jmx)attributes.
#
RDIR=`dirname $0`
java -cp $RDIR/jmxquery.jar org.nagios.JMXQuery $@

and the doc:-
http://nagios.sourceforge.net/docs/3_0/plugins.html
where the following is written
Plugins are compiled executables or scripts (Perl scripts, shell scripts, etc.) that can be run from a command line to check the status or a host or service. Nagios uses the results from plugins to determine the current status of hosts and services on your network.

Would you recommend writing Plugins for Nagios in Java?

Thanks and Regards,
Sumit
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Java Plugins?

Post by scottwilkerson »

I don't see any problem with writing plugins in java.

They should be fairly light-weight as compared to other high-level scripting languages.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked