Welcome to Pandora FMS Community › Forums › Community support › Monitor JVM
-
Monitor JVM
Posted by javim on July 20, 2010 at 13:50Is Pandora able to monitors a JVM (Java Virtual Machine)?
Thanks in advance.
Sancho replied 14 years, 6 months ago 3 Members · 4 Replies -
4 Replies
-
-
-
::
There is an utility from Sun (now Oracle :-D) that may help you (check that is installed in your system, command jps:
 http://java.sun.com/performance/jvmstat/
Usage:
 http://java.sun.com/performance/jvmstat/solaris.html
If you make it work…:), adding it to the pandora agent is simple, just create a module that parses the output using your own shell skills (wc, cut, perl, sed, awk, tail…)
As an example:
module_begin
module_name jvmperf
module_type generic_data
module_exec jstat -gcutil $(jps |grep -v Jps|tail -1|awk '{print $1}') 1000 1
module_description JVM Performance
module_end -
::
Added to our public module repository:
http://pandorafms.org/index.php?sec=community&sec2=repository&lng=es&action=view_PUI&id_PUI=132
Thx.