Java Plugins?
Posted: Thu Aug 23, 2012 6:52 am
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
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