tag:blogger.com,1999:blog-60997679145072847712024-02-19T06:42:18.159-08:00Surender KajlaSoftware Architect<br>S.Kajlahttp://www.blogger.com/profile/15447006762999009647noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-6099767914507284771.post-58852464379120586922010-07-07T00:06:00.000-07:002010-07-12T00:01:16.792-07:00Jboss Monitoring Using Zabbix<div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><span style="color: #333333; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Monitoring of JBoss Application is required for delivering comprehensive fault management and proactive alarm notifications, checking for impending problems, triggering appropriate actions and gathering performance data for planning, analysis, and reporting.<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Some of the components that can be monitored in JBoss are:</span><span style="color: black; font-family: "Trebuchet MS"; font-size: 8.0pt; line-height: 150%; mso-bidi-font-size: 10.0pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 150%; margin-left: 22.5pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-align: justify; text-indent: -.25in; text-justify: inter-ideograph;"><span style="color: black; font-family: Symbol; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">JVM Heap & Non Heap Memory Usage</span><span style="color: black; font-family: "Trebuchet MS"; font-size: 8.0pt; line-height: 150%; mso-bidi-font-size: 10.0pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 150%; margin-left: 22.5pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-align: justify; text-indent: -.25in; text-justify: inter-ideograph;"><span style="color: black; font-family: Symbol; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Garbage Collection Information</span><span style="color: black; font-family: "Trebuchet MS"; font-size: 8.0pt; line-height: 150%; mso-bidi-font-size: 10.0pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 150%; margin-left: 22.5pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-align: justify; text-indent: -.25in; text-justify: inter-ideograph;"><span style="color: black; font-family: Symbol; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Class Loading and Unloading Information</span><span style="color: black; font-family: "Trebuchet MS"; font-size: 8.0pt; line-height: 150%; mso-bidi-font-size: 10.0pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 150%; margin-left: 22.5pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-align: justify; text-indent: -.25in; text-justify: inter-ideograph;"><span style="color: black; font-family: Symbol; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Running Thread Information</span><span style="color: black; font-family: "Trebuchet MS"; font-size: 8.0pt; line-height: 150%; mso-bidi-font-size: 10.0pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 150%; margin-left: 22.5pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-align: justify; text-indent: -.25in; text-justify: inter-ideograph;"><span style="color: black; font-family: Symbol; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Server Response Time</span><span style="color: black; font-family: "Trebuchet MS"; font-size: 8.0pt; line-height: 150%; mso-bidi-font-size: 10.0pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 150%; margin-left: 22.5pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-align: justify; text-indent: -.25in; text-justify: inter-ideograph;"><span style="color: black; font-family: Symbol; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><st1:city><st1:place><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Enterprise</span></st1:place></st1:city><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;"> JavaBeans (EJBs)</span><span style="color: black; font-family: "Trebuchet MS"; font-size: 8.0pt; line-height: 150%; mso-bidi-font-size: 10.0pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 150%; margin-left: 22.5pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-align: justify; text-indent: -.25in; text-justify: inter-ideograph;"><span style="color: black; font-family: Symbol; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Metrics of all web applications</span><span style="color: black; font-family: "Trebuchet MS"; font-size: 8.0pt; line-height: 150%; mso-bidi-font-size: 10.0pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 150%; margin-left: 22.5pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-align: justify; text-indent: -.25in; text-justify: inter-ideograph;"><span style="color: black; font-family: Symbol; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Java Database Connectivity (JDBC) Pools</span><span style="color: black; font-family: "Trebuchet MS"; font-size: 8.0pt; line-height: 150%; mso-bidi-font-size: 10.0pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 150%; margin-left: 22.5pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-align: justify; text-indent: -.25in; text-justify: inter-ideograph;"><span style="color: black; font-family: Symbol; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Hardware and Operating system information (disk/cpu/memory/load, etc..)</span><span style="color: black; font-family: "Trebuchet MS"; font-size: 8.0pt; line-height: 150%; mso-bidi-font-size: 10.0pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 150%; margin-left: 22.5pt; mso-list: l0 level1 lfo1; tab-stops: list .5in; text-align: justify; text-indent: -.25in; text-justify: inter-ideograph;"><span style="color: black; font-family: Symbol; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;"><span style="mso-list: Ignore;">·<span style="font: 7.0pt "Times New Roman";"> </span></span></span><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Other Jboss attributes</span><span style="color: black; font-family: "Trebuchet MS"; font-size: 8.0pt; line-height: 150%; mso-bidi-font-size: 10.0pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 150%; margin-left: 4.5pt; text-align: justify; text-justify: inter-ideograph;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><span style="color: #333333; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Open source Available tools which can be used for monitoring are Zabbix, Nagios and Zennos. In this blog, I have used Zabbix (Low cost effective solution) Open source distributed monitoring tool for Jboss and Linux System monitoring. Zabbix supports both polling and trapping techniques to collect data from monitored hosts. A flexible notification mechanism allows easy and quickly configure different types of notifications for pre-defined events.<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Jboss Application server monitoring is logically divided into two sections:</span><span style="color: black; font-family: "Trebuchet MS"; font-size: 8.0pt; line-height: 150%; mso-bidi-font-size: 10.0pt;"><o:p></o:p></span></div><div class="MsoNormal" style="line-height: 150%; margin-left: 4.5pt; text-align: justify; text-indent: .25in; text-justify: inter-ideograph;"><span style="color: #254b72; font-family: Verdana; font-size: 8.5pt; line-height: 150%;"><!--[if gte vml 1]><v:shapetype
id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t"
path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f"> <v:stroke joinstyle="miter"/> <v:formulas> <v:f eqn="if lineDrawn pixelLineWidth 0"/> <v:f eqn="sum @0 1 0"/> <v:f eqn="sum 0 0 @1"/> <v:f eqn="prod @2 1 2"/> <v:f eqn="prod @3 21600 pixelWidth"/> <v:f eqn="prod @3 21600 pixelHeight"/> <v:f eqn="sum @0 0 1"/> <v:f eqn="prod @6 1 2"/> <v:f eqn="prod @7 21600 pixelWidth"/> <v:f eqn="sum @8 21600 0"/> <v:f eqn="prod @7 21600 pixelHeight"/> <v:f eqn="sum @10 21600 0"/> </v:formulas> <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/> <o:lock v:ext="edit" aspectratio="t"/> </v:shapetype><v:shape id="_x0000_i1027" type="#_x0000_t75" alt="" style='width:7.5pt;
height:7.5pt'> <v:imagedata src="file:///C:\DOCUME~1\IBM\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"
o:href="http://skajla.sphinx.in/images/blue_bullet.gif"/> </v:shape><![endif]--><img height="10" src="file:///C:/DOCUME~1/IBM/LOCALS~1/Temp/msohtml1/01/clip_image001.gif" v:shapes="_x0000_i1027" width="10" /><span class="apple-style-span"> </span></span><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Java, which include JBoss and JVM Monitoring.<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 150%; margin-left: 4.5pt; text-align: justify; text-indent: .25in; text-justify: inter-ideograph;"><span style="color: #254b72; font-family: Verdana; font-size: 8.5pt; line-height: 150%;"><!--[if gte vml 1]><v:shape
id="_x0000_i1028" type="#_x0000_t75" alt="" style='width:7.5pt;height:7.5pt'> <v:imagedata src="file:///C:\DOCUME~1\IBM\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"
o:href="http://skajla.sphinx.in/images/blue_bullet.gif"/> </v:shape><![endif]--><img height="10" src="file:///C:/DOCUME~1/IBM/LOCALS~1/Temp/msohtml1/01/clip_image001.gif" v:shapes="_x0000_i1028" width="10" /><span class="apple-style-span"> </span></span><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Hardware & Operating System Monitoring.<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><b><span style="color: #073763; font-family: "Trebuchet MS";">Jboss and JVM monitoring<o:p></o:p></span></b></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><span style="color: #333333; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">JMX stands for Java Management Extensions, and is a facility to allow for remote clients to connect to a JVM, and manage/monitor running applications in that JVM. This management is typically done through MBeans. MBeans are the heart of the JMX specification. </span><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;"><o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">In Jboss, JMX is being configured by enabling the JVM setting in<span class="apple-converted-space"><i> </i></span></span><i><span style="background: white; color: blue; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">"$JBOSS_HOME/bin/run.conf"</span></i><span class="apple-converted-space"><span style="background: white; color: blue; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;"> </span></span><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">file with the below mentioned options (stated JMX on 9999 port):<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;">JAVA_</span><st1:stockticker><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;">OPTS</span></st1:stockticker><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;">="$JAVA_</span><st1:stockticker><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;">OPTS</span></st1:stockticker><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;"> -Dcom.sun.management.jmxremote.port=9999" </span><span style="color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;"><o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;">JAVA_</span><st1:stockticker><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;">OPTS</span></st1:stockticker><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;">="$JAVA_</span><st1:stockticker><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;">OPTS</span></st1:stockticker><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;"> -Dcom.sun.management.jmxremote.ssl=false" </span><span style="color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;"><o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;">JAVA_</span><st1:stockticker><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;">OPTS</span></st1:stockticker><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;">="$JAVA_</span><st1:stockticker><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;">OPTS</span></st1:stockticker><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;"> -Dcom.sun.management.jmxremote.authenticate=false"</span><span style="color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;"><o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><span style="background: white; color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">In order to monitor the Jboss information, JMX defines a method for Java developers to integrate their applications with existing network management software by dynamically assigning Java objects with management attributes and operations.</span><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;"><o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><span style="color: black; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%;">In Jboss there are two ways that can grab the jmx attribute values. <o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;"><span style="color: #254b72; font-family: Verdana; font-size: 8.5pt; line-height: 150%;"><!--[if gte vml 1]><v:shape
id="_x0000_i1025" type="#_x0000_t75" alt="" style='width:7.5pt;height:7.5pt'> <v:imagedata src="file:///C:\DOCUME~1\IBM\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"
o:href="http://skajla.sphinx.in/images/blue_bullet.gif"/> </v:shape><![endif]--><img height="10" src="file:///C:/DOCUME~1/IBM/LOCALS~1/Temp/msohtml1/01/clip_image001.gif" v:shapes="_x0000_i1025" width="10" /><span class="apple-style-span"> </span></span><span style="color: black; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%;">Jboss Twiddle utility: </span><i><span style="background: #CFE2F3; color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">A simple command line tool that allows for interaction with a remote JMX server instance. This tool is called twiddle (for twiddling bits via JMX) and is located in the bin directory of the Jboss distribution. The only issue with this tool is it provides very basic information which is not sufficient for monitoring all Jboss parameters.<o:p></o:p></span></i></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><span class="Apple-style-span" style="color: #463c3c; font-family: 'Trebuchet MS'; font-size: small;"><span class="Apple-style-span" style="font-size: 13px; line-height: 19px;"><i><br />
</i></span></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;"><span style="color: #254b72; font-family: Verdana; font-size: 8.5pt; line-height: 150%;"><!--[if gte vml 1]><v:shape
id="_x0000_i1026" type="#_x0000_t75" alt="" style='width:7.5pt;height:7.5pt'> <v:imagedata src="file:///C:\DOCUME~1\IBM\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"
o:href="http://skajla.sphinx.in/images/blue_bullet.gif"/> </v:shape><![endif]--><img height="10" src="file:///C:/DOCUME~1/IBM/LOCALS~1/Temp/msohtml1/01/clip_image001.gif" v:shapes="_x0000_i1026" width="10" /><span class="apple-style-span"> </span></span><span style="color: black; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%;">JMX Command line utility: </span><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">This utility allows system administrators to retrieve JMX management data by querying Mbeans directly on Java applications such as memory use, class loaded, garbage collection counts, etc. <o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><span style="color: black; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%;">I have used </span><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;"><a href="http://skajla.blogspot.com/2010/05/jmx-command-line-client.html">Skajla-JMX command line utility</a> (Open Source JMX command line utility specially designed for monitoring Jboss application ) allows the administrator to instrument their Java application with a Zabbix agent. Below mentioned is the monitoring architecture.<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><br />
</div><div class="MsoNormal" style="line-height: 15.0pt;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">To capture JVM parameter, first check all available message bean parameters which user can capture using this JMX command line utility, below mentioned is the command: <o:p></o:p></span></div><div class="MsoNormal" style="line-height: 15.0pt;"><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">#java -jar skajla-JMXClient.jar <server ip=""> 9999 <jmxuser> <jmxpassword> info<o:p></o:p></jmxpassword></jmxuser></server></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">e.g Lets say we want to capture ‘PS Perm Gen init memory’, then below mentioned is the command<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">#java -jar skajla-JMXClient.jar 192.168.1.1 9999 admin jmxpassword 'java.lang:type=MemoryPool,name=PS Perm Gen' CollectionUsage init</span><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;"><o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">To check the syntax of skajla-JMX client, do the following<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 15.0pt;"><span style="background: silver; color: #073763; font-family: Courier; font-size: 10.0pt; mso-bidi-font-size: 12.0pt; mso-highlight: silver;"># java -jar skajla-JMXClient.jar <span style="mso-shading: #CCCCCC;"><br />
Usage :</span>skajla-JMXClient.jar <serverid> <port> <span style="mso-shading: #CCCCCC;"><jmxuser> <jmxpassword> <message bean="" name=""> <command> <attribute></attribute></command></message></jmxpassword></jmxuser></span></port></serverid></span><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;"><o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><span style="color: black; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">JMX Command input parameter detail<o:p></o:p></span></div><div class="MsoNormal" style="background: white; line-height: 14.25pt;"><span class="apple-style-span"><span style="background: silver; color: black; font-family: "Courier New"; font-size: 10.0pt; mso-highlight: silver;">JMX Server IP : IP Address of the jmx server </span></span><span style="background: silver; font-family: Arial; font-size: 11.5pt; mso-highlight: silver;"><br />
</span><st1:place><st1:placename><span class="apple-style-span"><span style="background: silver; color: black; font-family: "Courier New"; font-size: 10.0pt; mso-highlight: silver;">JMX</span></span></st1:placename><span class="apple-style-span"><span style="background: silver; color: black; font-family: "Courier New"; font-size: 10.0pt; mso-highlight: silver;"> </span></span><st1:placetype><st1:stockticker><span class="apple-style-span"><span style="background: silver; color: black; font-family: "Courier New"; font-size: 10.0pt; mso-highlight: silver;">PORT</span></span></st1:stockticker></st1:placetype></st1:place><span class="apple-style-span"><span style="background: silver; color: black; font-family: "Courier New"; font-size: 10.0pt; mso-highlight: silver;"><span style="mso-spacerun: yes;"> </span>: Port on which JMX service is running </span></span><span style="background: silver; mso-highlight: silver;"><br />
</span><span class="apple-style-span"><span style="background: silver; color: black; font-family: "Courier New"; font-size: 10.0pt; mso-highlight: silver;">JMX USER<span style="mso-spacerun: yes;"> </span>: Username required to connect to the JMX </span></span><span style="background: silver; font-family: Arial; font-size: 11.5pt; mso-highlight: silver;"><br />
</span><span class="apple-style-span"><span style="background: silver; color: black; font-family: "Courier New"; font-size: 10.0pt; mso-highlight: silver;">JMX PASSWORD<span style="mso-spacerun: yes;"> </span>: Password required to connect to the JMX </span></span><span style="background: silver; font-family: Arial; font-size: 11.5pt; mso-highlight: silver;"><br />
</span><span class="apple-style-span"><span style="background: silver; color: black; font-family: "Courier New"; font-size: 10.0pt; mso-highlight: silver;">MESSAGE BEAN<span style="mso-spacerun: yes;"> </span>: Target Bean for which attribute Value is required </span></span><span style="background: silver; font-family: Arial; font-size: 11.5pt; mso-highlight: silver;"><br />
</span><span class="apple-style-span"><span style="background: silver; color: black; font-family: "Courier New"; font-size: 10.0pt; mso-highlight: silver;">COMMAND<span style="mso-spacerun: yes;"> </span>: Operation to run or attribute to fetch, Attributes begin with</span></span><span style="background: silver; mso-highlight: silver;"><br />
</span><span class="apple-style-span"><span style="background: silver; color: black; font-family: "Courier New"; font-size: 10.0pt; mso-highlight: silver;">a capital letter. </span></span><span style="background: silver; font-family: Arial; font-size: 11.5pt; mso-highlight: silver;"><br />
</span><span class="apple-style-span"><span style="background: silver; color: black; font-family: "Courier New"; font-size: 10.0pt; mso-highlight: silver;">ATTRIBUTE<span style="mso-spacerun: yes;"> </span>: Optional, require in the cases when command output into multiple values</span></span><span class="apple-style-span"><span style="color: black; font-family: "Courier New"; font-size: 10.0pt;"><o:p></o:p></span></span></div><div class="MsoNormal" style="background: white; line-height: 14.25pt; text-align: justify; text-justify: inter-ideograph;"><br />
<b><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.5pt; mso-bidi-font-family: Arial;">Skajla-JMX Command Line Utility and Zabbix Monitoring Architecture</span></b><span style="color: #737373; font-family: Arial; font-size: 10.5pt;"><o:p></o:p></span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9tkZqV2TCEz7Vrzh98kLDrtm0QXDE85sfRPREX-eLAmH1kTGPrQUuwEYfaMAZXGLAuBDYZsPjNCGBJsoT1EXrTNqWxsvvcADAwkmDi7qX5S9DQZyFrd28-sXGILlqeTcHu71YKc9Hxpqo/s1600/monitoringArchitecture.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9tkZqV2TCEz7Vrzh98kLDrtm0QXDE85sfRPREX-eLAmH1kTGPrQUuwEYfaMAZXGLAuBDYZsPjNCGBJsoT1EXrTNqWxsvvcADAwkmDi7qX5S9DQZyFrd28-sXGILlqeTcHu71YKc9Hxpqo/s400/monitoringArchitecture.jpg" width="400" /></a></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><br />
</div><div class="MsoNormal" style="background: white; line-height: 15.75pt; text-align: justify; text-justify: inter-ideograph;"><b><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.5pt; mso-bidi-font-family: Arial;">Monitoring Network Architecture</span></b></div><div class="MsoNormal" style="background: white; line-height: 15.75pt;"><span class="apple-style-span"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; mso-bidi-font-family: Arial;">In order to monitor the Jboss Server, Below mentioned is the minimal Server requirement (Fig. 2 Minimal Monitoring Network Architecture :</span></span><b><span style="color: #073763; font-family: Arial; font-size: 10.5pt;"><o:p></o:p></span></b></div><div class="MsoNormal" style="background: white; line-height: 18.0pt; text-align: justify; text-justify: inter-ideograph;"><span style="color: #254b72; font-family: Verdana; font-size: 8.5pt; mso-bidi-font-family: Arial;"><!--[if gte vml 1]><v:shape
id="_x0000_i1029" type="#_x0000_t75" alt="" style='width:7.5pt;height:7.5pt'> <v:imagedata src="file:///C:\DOCUME~1\IBM\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"
o:href="../Local%20Settings/Temp/msohtml1/01/clip_image001.gif"/> </v:shape><![endif]--><img border="0" height="10" src="file:///C:/DOCUME~1/IBM/LOCALS~1/Temp/msohtml1/01/clip_image001.gif" u2:shapes="_x0000_i1025" v:shapes="_x0000_i1029" width="10" /><span class="apple-style-span"> Zabbix Server</span></span><b><span style="color: #073763; font-family: Arial; font-size: 10.5pt;"><o:p></o:p></span></b></div><div class="MsoNormal" style="background: white; line-height: 18.0pt; text-align: justify; text-justify: inter-ideograph;"><span style="color: #254b72; font-family: Verdana; font-size: 8.5pt; mso-bidi-font-family: Arial;"><!--[if gte vml 1]><v:shape
id="_x0000_i1030" type="#_x0000_t75" alt="" style='width:7.5pt;height:7.5pt'> <v:imagedata src="file:///C:\DOCUME~1\IBM\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"
o:href="../Local%20Settings/Temp/msohtml1/01/clip_image001.gif"/> </v:shape><![endif]--><img border="0" height="10" src="file:///C:/DOCUME~1/IBM/LOCALS~1/Temp/msohtml1/01/clip_image001.gif" u2:shapes="_x0000_i1026" v:shapes="_x0000_i1030" width="10" /><span class="apple-style-span"> Zabbix Database Server</span></span><b><span style="color: #073763; font-family: Arial; font-size: 10.5pt;"><o:p></o:p></span></b></div><div class="MsoNormal" style="background: white; line-height: 18.0pt; text-align: justify; text-justify: inter-ideograph;"><span style="color: #254b72; font-family: Verdana; font-size: 8.5pt; mso-bidi-font-family: Arial;"><!--[if gte vml 1]><v:shape
id="_x0000_i1031" type="#_x0000_t75" alt="" style='width:7.5pt;height:7.5pt'> <v:imagedata src="file:///C:\DOCUME~1\IBM\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"
o:href="../Local%20Settings/Temp/msohtml1/01/clip_image001.gif"/> </v:shape><![endif]--><img border="0" height="10" src="file:///C:/DOCUME~1/IBM/LOCALS~1/Temp/msohtml1/01/clip_image001.gif" u2:shapes="_x0000_i1027" v:shapes="_x0000_i1031" width="10" /><span class="apple-style-span"> Zabbix Web Server</span></span><b><span style="color: #073763; font-family: Arial; font-size: 10.5pt;"><o:p></o:p></span></b></div><div class="MsoNormal" style="background: white; line-height: 18.0pt; text-align: justify; text-justify: inter-ideograph;"><span style="color: #254b72; font-family: Verdana; font-size: 8.5pt; mso-bidi-font-family: Arial;"><!--[if gte vml 1]><v:shape
id="_x0000_i1032" type="#_x0000_t75" alt="" style='width:7.5pt;height:7.5pt'> <v:imagedata src="file:///C:\DOCUME~1\IBM\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"
o:href="../Local%20Settings/Temp/msohtml1/01/clip_image001.gif"/> </v:shape><![endif]--><img border="0" height="10" src="file:///C:/DOCUME~1/IBM/LOCALS~1/Temp/msohtml1/01/clip_image001.gif" u2:shapes="_x0000_i1028" v:shapes="_x0000_i1032" width="10" /><span class="apple-style-span"> Monitoring Server (Depends on the Business Requirement)</span></span><b><span style="color: #073763; font-family: Arial; font-size: 10.5pt;"><o:p></o:p></span></b></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4DwpN5XZ3C9Y6z1xgdfuWMj27jGsv-VBfuxKAFYi8COMlffRuwgIsVbt19fjtPnRZpqITnRr876ZGlAYH16SZm7veKp132jhehLRHuLTDuTTBTY7MJQw3244n8NRlHHIiZRCmDoANq8xW/s1600/defaultServerSetup.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="380" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4DwpN5XZ3C9Y6z1xgdfuWMj27jGsv-VBfuxKAFYi8COMlffRuwgIsVbt19fjtPnRZpqITnRr876ZGlAYH16SZm7veKp132jhehLRHuLTDuTTBTY7MJQw3244n8NRlHHIiZRCmDoANq8xW/s640/defaultServerSetup.jpg" width="640" /></a></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><b><span style="color: #073763; font-family: "Trebuchet MS";">Zabbix Agent Configuration for jboss Monitoring<o:p></o:p></span></b></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Below mentioned is the required configuration, which we need to add in the zabbix agent configuration in <span style="mso-spacerun: yes;"> </span><i style="mso-bidi-font-style: normal;">zabbix_agentd.conf</i> file.<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><b><i style="mso-bidi-font-style: normal;"><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Step-1:</span></i></b><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 8.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;"> </span><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Add the User Parameter to zabbix agentd configuration file.<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">User parameter has the following syntax:<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">UserParameter=key,command<o:p></o:p></span></div><table border="1" cellpadding="0" cellspacing="0" class="MsoTableClassic1" style="border-collapse: collapse; border: none; margin-left: 5.4pt; mso-border-alt: solid silver .75pt; mso-border-insideh: .75pt solid silver; mso-border-insidev: .75pt solid silver; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 480;"><tbody>
<tr style="height: 19.5pt; mso-yfti-irow: -1;"> <td style="background: #E6E6E6; border-bottom: black; border-left: silver; border-right: black; border-style: solid; border-top: silver; border-width: 1.0pt; height: 19.5pt; mso-border-bottom-alt: black; mso-border-left-alt: silver; mso-border-right-alt: black; mso-border-style-alt: solid; mso-border-top-alt: silver; mso-border-width-alt: .75pt; padding: 0in 5.4pt 0in 5.4pt; width: 1.25in;" width="120"> <div style="margin-bottom: .0001pt; margin: 0in; mso-yfti-cnfc: 5;"><i><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Parameter<o:p></o:p></span></i></div></td> <td style="background: #E6E6E6; border-bottom: solid black 1.0pt; border-left: none; border-right: solid silver 1.0pt; border-top: solid silver 1.0pt; height: 19.5pt; mso-border-alt: solid silver .75pt; mso-border-bottom-alt: solid black .75pt; mso-border-left-alt: solid silver .75pt; padding: 0in 5.4pt 0in 5.4pt; width: 401.4pt;" width="535"> <div style="margin-bottom: .0001pt; margin: 0in; mso-yfti-cnfc: 1;"><i><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Description<o:p></o:p></span></i></div></td> </tr>
<tr style="height: 17.25pt; mso-yfti-irow: 0;"> <td style="border-bottom: solid silver 1.0pt; border-left: solid silver 1.0pt; border-right: solid black 1.0pt; border-top: none; height: 17.25pt; mso-border-alt: solid silver .75pt; mso-border-right-alt: solid black .75pt; mso-border-top-alt: solid silver .75pt; padding: 0in 5.4pt 0in 5.4pt; width: 1.25in;" width="120"> <div style="margin-bottom: .0001pt; margin: 0in; mso-yfti-cnfc: 4;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Key<o:p></o:p></span></div></td> <td style="border-bottom: solid silver 1.0pt; border-left: none; border-right: solid silver 1.0pt; border-top: none; height: 17.25pt; mso-border-alt: solid silver .75pt; mso-border-left-alt: solid silver .75pt; mso-border-top-alt: solid silver .75pt; padding: 0in 5.4pt 0in 5.4pt; width: 401.4pt;" width="535"> <div style="margin-bottom: .0001pt; margin: 0in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Unique Item Key<o:p></o:p></span></div></td> </tr>
<tr style="height: 17.25pt; mso-yfti-irow: 1; mso-yfti-lastrow: yes;"> <td style="border-bottom: solid silver 1.0pt; border-left: solid silver 1.0pt; border-right: solid black 1.0pt; border-top: none; height: 17.25pt; mso-border-bottom-alt: silver; mso-border-left-alt: silver; mso-border-right-alt: black; mso-border-style-alt: solid; mso-border-top-alt: black; mso-border-top-alt: solid black .75pt; mso-border-width-alt: .75pt; padding: 0in 5.4pt 0in 5.4pt; width: 1.25in;" width="120"> <div style="margin-bottom: .0001pt; margin: 0in; mso-yfti-cnfc: 2054;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; mso-bidi-font-size: 12.0pt; mso-bidi-font-weight: bold;">Command<o:p></o:p></span></div></td> <td style="border-bottom: solid silver 1.0pt; border-left: none; border-right: solid silver 1.0pt; border-top: none; height: 17.25pt; mso-border-alt: solid silver .75pt; mso-border-left-alt: solid silver .75pt; mso-border-top-alt: solid black .75pt; mso-border-top-alt: solid black .75pt; padding: 0in 5.4pt 0in 5.4pt; width: 401.4pt;" width="535"> <div style="margin-bottom: .0001pt; margin: 0in; mso-yfti-cnfc: 2;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Command to be executed to evaluate value of the key.<o:p></o:p></span></div></td> </tr>
</tbody></table><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Example : To monitoring Perm Gen init memory, below mentioned is the required configuration<o:p></o:p></span></div><div class="MsoNormal" style="line-height: 15.0pt;"><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">UserParameter=permgen_init, java -jar skajla-JMXClient.jar 192.168.1.1 9999 admin jmxpass 'java.lang:type=MemoryPool,name=PS </span><st1:city><st1:place><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;">Perm</span></st1:place></st1:city><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; mso-bidi-font-size: 12.0pt;"> Gen' CollectionUsage init</span><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; mso-bidi-font-family: "Courier New"; mso-bidi-font-size: 12.0pt;"><o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><i><span style="background: #CFE2F3; color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Note: The advantage of using skajla-jmxclient is that it gives only the required value of queried MBean parameter, which eases to capture the information for monitoring.<o:p></o:p></span></i></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">You can easily get other parameter values which you want to monitor by just replacing values of </span><span style="background: #CCCCCC; color: #073763; font-family: Courier; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">”java.lang:type=MemoryPool,name=PS Perm Gen with required parameters” </span><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">in above mentioned userParameter configuration <o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><b><i style="mso-bidi-font-style: normal;"><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Step-2:</span></i></b><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;"> Restart the Zabbix agentd <o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><b><i style="mso-bidi-font-style: normal;"><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Step-3:</span></i></b><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;"> Configuration of Zabbix frontend<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-indent: .5in;"><b><i style="mso-bidi-font-style: normal;"><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Step-A:</span></i></b><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;"> Add monitoring items<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; text-indent: .5in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Login the zabbix frontend<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; text-indent: .5in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">|_ Configuration <o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.5in; margin-right: 0in; margin-top: 0in; text-indent: .5in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">|_ Host <o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 2.0in; margin-right: 0in; margin-top: 0in; text-indent: .5in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">|_ Select monitored server<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 2.5in; margin-right: 0in; margin-top: 0in; text-indent: .5in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">|_ Items->Create Item<o:p></o:p></span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8VU0zvhSHK_3MINSdEbazVSpSsuQ_Eb3pDFaNbMc_fHa_LQoc4BniNQwMVpcyCXKkNimNzFriofrZlCac9anLSZzbWWtOgm2lrHOt7GPADDzioAJUpf9z_-1frIpc_E4X3s1qwi0uLuD2/s1600/configuration.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="348" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8VU0zvhSHK_3MINSdEbazVSpSsuQ_Eb3pDFaNbMc_fHa_LQoc4BniNQwMVpcyCXKkNimNzFriofrZlCac9anLSZzbWWtOgm2lrHOt7GPADDzioAJUpf9z_-1frIpc_E4X3s1qwi0uLuD2/s640/configuration.jpg" width="640" /></a></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 2.5in; margin-right: 0in; margin-top: 0in; text-indent: .5in;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">To Configure the item, the key point which you have to take care is that,you must set the item key same as set in UserParameter in zabbix_agentd.conf and item type must be Zabbix agent<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-indent: .5in;"><b><i style="mso-bidi-font-style: normal;"><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Step-B:</span></i></b><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;"> Create Graphs<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: .5in; margin-right: 0in; margin-top: 0in; text-indent: .5in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">Login the zabbix frontend<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.0in; margin-right: 0in; margin-top: 0in; text-indent: .5in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">|_Configuration <o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 1.5in; margin-right: 0in; margin-top: 0in; text-indent: .5in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">|_Hosts <o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 2.0in; margin-right: 0in; margin-top: 0in; text-indent: .5in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">|_ Select host<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 2.5in; margin-right: 0in; margin-top: 0in; text-indent: .5in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">|_ Graph<o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin-bottom: 0in; margin-left: 3.0in; margin-right: 0in; margin-top: 0in; text-indent: .5in;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;">|_ Create Graph<o:p></o:p></span></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2SvU3dxX7C_8AR5A1p8mKoIdxwpExfx9HtFA7gT4g9HEcknL0_DL2M_tGaX8JojNyDimZsDFzUbjbRevpvPw720WkajS9e7_P2uldzvuRFR56T5hhgeV5wv9nBw3SYfDMEN-AaFxSc2N_/s1600/Graph.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="290" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2SvU3dxX7C_8AR5A1p8mKoIdxwpExfx9HtFA7gT4g9HEcknL0_DL2M_tGaX8JojNyDimZsDFzUbjbRevpvPw720WkajS9e7_P2uldzvuRFR56T5hhgeV5wv9nBw3SYfDMEN-AaFxSc2N_/s640/Graph.jpg" width="640" /></a></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Imv99B5dcq6aE1U0mE1tpajve0wgvblLcbKhXGUREJxF9WLKPnpz7YlGnkPyfsnLnK1ehFnG_Q9R6z0PTEbv70s0VVbr6fVLtDlFnu3T43F8WdflB-BkmQeQ6V19QcPgHUfvAmIOx_OL/s1600/createGraph.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="380" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8Imv99B5dcq6aE1U0mE1tpajve0wgvblLcbKhXGUREJxF9WLKPnpz7YlGnkPyfsnLnK1ehFnG_Q9R6z0PTEbv70s0VVbr6fVLtDlFnu3T43F8WdflB-BkmQeQ6V19QcPgHUfvAmIOx_OL/s640/createGraph.jpg" width="640" /></a></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><i style="mso-bidi-font-style: normal;"><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;"><o:p><br />
</o:p></span></i></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><i><span style="color: #463c3c; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;"><a href="https://docs.google.com/leaf?id=0B-B7p7GzuQI-NjAwNGM5ZmYtODczYS00MDI1LWE2MmUtOTVkZTAxMDU2MjI5&sort=name&layout=list&num=50">For refrence, you can download Linux Jboss Zabbix Template</a></span></i><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; line-height: 150%; mso-bidi-font-size: 12.0pt;"><o:p></o:p></span></div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><i><br />
</i></div><div class="MsoNormal" style="background: white; line-height: 15.75pt; text-align: justify; text-justify: inter-ideograph;"><b><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.5pt; mso-bidi-font-family: Arial;">JBoss Monitoring Graphs </span></b><span class="apple-style-span"><i><span style="color: #073763; font-family: "Trebuchet MS"; font-size: 10.0pt; mso-bidi-font-family: Arial;">(Also Defined in the Linux Jboss Template)</span></i></span><span style="color: #737373; font-family: Arial; font-size: 10.0pt;"><o:p></o:p></span></div><table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-alt: 0in 0in 0in 0in;"><tbody>
<tr style="height: 3.0pt; mso-yfti-irow: 0;"> <td style="border: solid white 1.0pt; height: 3.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 3.45in;" valign="top" width="331"> <div align="center" class="MsoNormal" style="text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuNbAz0ZPewQS0CrBbIJkE6dAFRgdsis2cIA63blNb4CIMgy18lW2moF1-mPVj_OXiKYFifBKnzYG84uxCuGWq_a2t5-93Hto4CROG7tBHX1ddcUgaoeTsugEMLgAr3LX4Sw-qR8IZgYbC/s1600/threads.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="210" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuNbAz0ZPewQS0CrBbIJkE6dAFRgdsis2cIA63blNb4CIMgy18lW2moF1-mPVj_OXiKYFifBKnzYG84uxCuGWq_a2t5-93Hto4CROG7tBHX1ddcUgaoeTsugEMLgAr3LX4Sw-qR8IZgYbC/s400/threads.jpg" width="400" /></a></div><div align="center" class="MsoNormal" style="line-height: 15.0pt; text-align: center;"><br />
</div></td> <td style="border-left: none; border: solid white 1.0pt; height: 3.0pt; mso-border-left-alt: solid white 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 3.45in;" valign="top" width="331"> <div align="center" class="MsoNormal" style="text-align: center;"><br />
</div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMixQBxonvPRhwKOK0cICT8rYWFPjLtlZZUIILaun3WMLqCU1FDof3PM-qDV6jiH6WYBpF8RuSqNNahXV7_FRE8DWEMS5I-fBPip9-8UqVpyO-1rmin_PQZhvTICH7skg9gdhNyYYenPmc/s1600/classes.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="208" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMixQBxonvPRhwKOK0cICT8rYWFPjLtlZZUIILaun3WMLqCU1FDof3PM-qDV6jiH6WYBpF8RuSqNNahXV7_FRE8DWEMS5I-fBPip9-8UqVpyO-1rmin_PQZhvTICH7skg9gdhNyYYenPmc/s400/classes.jpg" width="400" /></a></div><div align="center" class="MsoNormal" style="line-height: 15.0pt; text-align: center;"><br />
</div></td> </tr>
<tr style="height: 3.0pt; mso-yfti-irow: 1;"> <td style="border-top: none; border: solid white 1.0pt; height: 3.0pt; mso-border-top-alt: solid white 1.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 3.45in;" valign="top" width="331"> <div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO0azttLrXOzs7WkR7_rrXRjxiaCong46ZhTQta3-b2nX-8E2U_-pR7uXwSNI4BwocHjWzgptEq7bS_XrFnMVEb8Ep3rX2N3q6Zo3CN3O0CLefxwPH-QSrQu3Tzyb07xqd6M8mQuifur3z/s1600/heap.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="217" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhO0azttLrXOzs7WkR7_rrXRjxiaCong46ZhTQta3-b2nX-8E2U_-pR7uXwSNI4BwocHjWzgptEq7bS_XrFnMVEb8Ep3rX2N3q6Zo3CN3O0CLefxwPH-QSrQu3Tzyb07xqd6M8mQuifur3z/s400/heap.jpg" width="400" /></a></div><div align="center" class="MsoNormal" style="text-align: center;"><span style="font-size: 10.0pt;"><o:p> <span class="Apple-style-span" style="font-size: medium;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY7AYtnfhLa690uFm4NnL8BNUgXqGK5K-HnDkEHMlIFTwCGV00b_lt4LvGxthRlqGwbrv3agTCEnUqcB0rb9wtZ0juYMlvD7j05ws0dFWAJDmGg13liWH1GjTp8RLZiTQzMXZTEag3h2Ya/s1600/nonheap.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="217" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhY7AYtnfhLa690uFm4NnL8BNUgXqGK5K-HnDkEHMlIFTwCGV00b_lt4LvGxthRlqGwbrv3agTCEnUqcB0rb9wtZ0juYMlvD7j05ws0dFWAJDmGg13liWH1GjTp8RLZiTQzMXZTEag3h2Ya/s400/nonheap.jpg" width="400" /></a></span></o:p></span></div><div align="center" class="MsoNormal" style="line-height: 15.0pt; text-align: center;"><br />
</div></td><td style="border-bottom: solid white 1.0pt; border-left: none; border-right: solid white 1.0pt; border-top: none; height: 3.0pt; padding: 0in 5.4pt 0in 5.4pt; width: 3.45in;" valign="top" width="331"><div align="center" class="MsoNormal" style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8N6jOimjfDMmu7gDusMZhkvaJgGvV_rS-czv2IbabwWX1lzHdh0Q-bzRvtN7rjFJh3uuEhe3p1dlhBNtDQnsK48miVkOAPskIrOZEQCW221flrcsHri5eC-Y7XuBnlSM4L6sahMDetGGS/s1600/permgen.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="217" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8N6jOimjfDMmu7gDusMZhkvaJgGvV_rS-czv2IbabwWX1lzHdh0Q-bzRvtN7rjFJh3uuEhe3p1dlhBNtDQnsK48miVkOAPskIrOZEQCW221flrcsHri5eC-Y7XuBnlSM4L6sahMDetGGS/s400/permgen.jpg" width="400" /></a></div><div class="separator" style="clear: both; text-align: center;"><span class="Apple-style-span" style="font-size: small;"><br />
</span><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivKap41rSAbNNHgcb0UsXJpOCe5doR48sIy68LWVZWp4r_TU0Ojmr3av0ghKNcHaKBFw6wOyAV5qRKSoCld-uZn4gPMpcA_b8oyYvp_areII7__ZBlkdZnLVotRFv_SUjYDVpMzXLbj5cG/s1600/systemMemory.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEivKap41rSAbNNHgcb0UsXJpOCe5doR48sIy68LWVZWp4r_TU0Ojmr3av0ghKNcHaKBFw6wOyAV5qRKSoCld-uZn4gPMpcA_b8oyYvp_areII7__ZBlkdZnLVotRFv_SUjYDVpMzXLbj5cG/s400/systemMemory.jpg" width="400" /></a></div><div align="center" class="MsoNormal" style="line-height: 15.0pt; text-align: center;"></div></td></tr>
</tbody></table><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in; text-align: justify; text-justify: inter-ideograph;"><b><span style="color: #073763; font-family: "Trebuchet MS";">Downloads<o:p></o:p></span></b></div><pre style="line-height: 14.25pt;"><i><span style="font-family: "Trebuchet MS"; mso-bidi-font-family: "Times New Roman";"><!--[if gte vml 1]><v:shape
id="_x0000_i1033" type="#_x0000_t75" alt="" style='width:7.5pt;height:7.5pt'>
<v:imagedata src="file:///C:\DOCUME~1\IBM\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"
o:href="http://skajla.sphinx.in/images/blue_bullet.gif"/>
</v:shape><![endif]--><span class="Apple-style-span" style="font-size: small;"><img border="0" height="10" src="file:///C:/DOCUME~1/IBM/LOCALS~1/Temp/msohtml1/01/clip_image001.gif" v:shapes="_x0000_i1033" width="10" /> </span><a href="https://docs.google.com/leaf?id=0B-B7p7GzuQI-NjAwNGM5ZmYtODczYS00MDI1LWE2MmUtOTVkZTAxMDU2MjI5&sort=name&layout=list&num=50"><span style="color: windowtext; text-decoration: none; text-underline: none;"><span class="Apple-style-span" style="font-size: small;">Download Linux Jboss Template</span></span></a><span class="Apple-style-span" style="font-size: small;"><o:p></o:p></span></span></i></pre><pre style="line-height: 14.25pt;"><i><span style="color: #463c3c; font-family: "Trebuchet MS"; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt;"><!--[if gte vml 1]><v:shape id="_x0000_i1034"
type="#_x0000_t75" alt="" style='width:7.5pt;height:7.5pt'>
<v:imagedata src="file:///C:\DOCUME~1\IBM\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"
o:href="http://skajla.sphinx.in/images/blue_bullet.gif"/>
</v:shape><![endif]--><span class="Apple-style-span" style="font-size: small;"><img border="0" height="10" src="file:///C:/DOCUME~1/IBM/LOCALS~1/Temp/msohtml1/01/clip_image001.gif" v:shapes="_x0000_i1034" width="10" /> </span></span></i><i><span style="font-family: "Trebuchet MS"; mso-bidi-font-family: "Times New Roman";"><span class="Apple-style-span" style="font-size: small;">Download JMXClient Executable JAR of File:</span></span></i><i><span style="color: #463c3c; font-family: "Trebuchet MS"; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt;"><span class="Apple-style-span" style="font-size: small;"><o:p></o:p></span></span></i></pre><pre style="line-height: 14.25pt;"><i><span style="font-family: "Trebuchet MS"; mso-bidi-font-family: "Times New Roman";"><span class="Apple-style-span" style="font-size: small;"> </span></span></i><i><span style="color: #463c3c; font-family: "Trebuchet MS"; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt;"><a href="http://jmxclient.svn.sourceforge.net/viewvc/jmxclient/skajla-JMXClient.jar?revision=3"><span style="color: windowtext; mso-bidi-font-size: 10.0pt; text-decoration: none; text-underline: none;"><span class="Apple-style-span" style="font-size: small;">http://jmxclient.svn.sourceforge.net/viewvc/jmxclient/skajla-JMXClient.jar?revision=3</span></span></a><span class="Apple-style-span" style="font-size: small;"><o:p></o:p></span></span></i></pre><pre style="line-height: 14.25pt;"><i><span style="color: #463c3c; font-family: "Trebuchet MS"; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt;"><!--[if gte vml 1]><v:shape id="_x0000_i1035"
type="#_x0000_t75" alt="" style='width:7.5pt;height:7.5pt'>
<v:imagedata src="file:///C:\DOCUME~1\IBM\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"
o:href="http://skajla.sphinx.in/images/blue_bullet.gif"/>
</v:shape><![endif]--><span class="Apple-style-span" style="font-size: small;"><img border="0" height="10" src="file:///C:/DOCUME~1/IBM/LOCALS~1/Temp/msohtml1/01/clip_image001.gif" v:shapes="_x0000_i1035" width="10" /></span></span></i><i><span lang="FR" style="color: #463c3c; font-family: "Trebuchet MS"; mso-ansi-language: FR; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt;"><span class="Apple-style-span" style="font-size: small;"> </span></span></i><i><span lang="FR" style="font-family: "Trebuchet MS"; mso-ansi-language: FR; mso-bidi-font-family: "Times New Roman";"><span class="Apple-style-span" style="font-size: small;">Download JMXClient Source Code:</span></span></i><i><span lang="FR" style="color: #463c3c; font-family: "Trebuchet MS"; mso-ansi-language: FR; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt;"><span class="Apple-style-span" style="font-size: small;"><o:p></o:p></span></span></i></pre><pre style="line-height: 14.25pt;"><i><span lang="FR" style="font-family: "Trebuchet MS"; mso-ansi-language: FR; mso-bidi-font-family: "Times New Roman";"><span class="Apple-style-span" style="font-size: small;"> </span></span></i><i><span style="color: #463c3c; font-family: "Trebuchet MS"; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt;"><a href="http://sourceforge.net/projects/jmxclient/"><span lang="FR" style="color: windowtext; mso-ansi-language: FR; mso-bidi-font-size: 10.0pt; text-decoration: none; text-underline: none;"><span class="Apple-style-span" style="font-size: small;">http://sourceforge.net/projects/jmxclient/</span></span></a></span></i><i style="mso-bidi-font-style: normal;"><span lang="FR" style="color: #463c3c; font-family: "Trebuchet MS"; mso-ansi-language: FR; mso-bidi-font-family: "Times New Roman"; mso-bidi-font-size: 12.0pt;"><o:p></o:p></span></i></pre><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><br />
</div><div style="line-height: 150%; margin-bottom: .0001pt; margin: 0in;"><br />
</div>S.Kajlahttp://www.blogger.com/profile/15447006762999009647noreply@blogger.com30tag:blogger.com,1999:blog-6099767914507284771.post-60729358168827933222010-05-16T10:58:00.000-07:002010-06-11T01:13:38.275-07:00JMX Command Line Client<span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;">skajla-JMXClient is a open source, command-line based JMX client, which provides a centralized console for managing application clusters and distributed-application environments. The skajla-JMXClient mission is to provide an open source management platform, which can be used to manage and monitor complete production environment using open source monitoring tools like Zabbix, Naggios. </span></span><br />
<div><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;"><br />
</span> </span><span class="Apple-style-span" style="font-size: small;"> </span><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;"> </span></span></div><div><b><span class="Apple-style-span" style="font-weight: normal; line-height: 16px;"><span class="Apple-style-span" style="line-height: normal;"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;">skajla-JMXClient </span></span></span><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;">can be used to connect to the SUN JVM JDK 1.5.0 JMX Agent to set logging levels remotely and to get information on the running JVM. </span></span></span></b><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;">It is specially designed to return only the output value, which can be easily monitored using monitoring tools.</span></span></div><div><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;"><br />
</span> </span><span class="Apple-style-span" style="font-size: small;"> </span><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;"> </span></span></div><div><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;">e.g Zabbix Agent configuration for capturing Perm Gen init memory.</span></span></div><div><span class="Apple-style-span" style="color: #666666;"><span class="Apple-style-span" style="background-color: #9fc5e8;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;">UserParameter=permgen_init, </span></span></span></span><span class="Apple-style-span" style="line-height: 16px;"><code><i><span class="Apple-style-span" style="color: #666666;"><span class="Apple-style-span" style="background-color: #9fc5e8;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;">java -jar skajla-</span></span></span></span></i></code><i><span class="Apple-style-span" style="color: #666666;"><span class="Apple-style-span" style="background-color: #9fc5e8;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;">JMXClient.jar 192.168.1.1 9999 admin jmxpass </span></span></span><span class="Apple-style-span" style="font-style: normal; line-height: normal;"><span class="Apple-style-span" style="background-color: #9fc5e8;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;">'</span></span></span></span><span class="Apple-style-span" style="line-height: normal;"><span class="Apple-style-span" style="background-color: #9fc5e8;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;">java.lang:type=MemoryPool,name=PS Perm Gen' CollectionUsage init</span></span></span></span></span></i></span></div><div><span class="Apple-style-span" style="line-height: 16px;"><i><span class="Apple-style-span" style="color: #666666;"><span class="Apple-style-span" style="line-height: normal;"><span class="Apple-style-span" style="color: black; font-style: normal;"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;">Above mentioned command will return Perm Gen Init memory value only, which can be easily capture by Zabbix or any other monitoring tool.</span></span></span></span></span></i></span></div><div><span class="Apple-style-span" style="line-height: 16px;"><i><span class="Apple-style-span" style="color: #666666;"><span class="Apple-style-span" style="line-height: normal;"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;"><br />
</span> </span><span class="Apple-style-span" style="font-size: small;"> </span><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;"> </span></span></span></span></i></span></div><div><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;">Command to check all available message bean which user can capture using this utilty:</span></span></div><div><span class="Apple-style-span" style="color: #666666;"><i><span class="Apple-style-span" style="color: black; font-style: normal; line-height: 16px;"><code><i><span class="Apple-style-span" style="color: #666666;"><span class="Apple-style-span" style="background-color: #9fc5e8;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;">#java -jar skajla-</span></span></span></span></i></code><i><span class="Apple-style-span" style="color: #666666;"><span class="Apple-style-span" style="background-color: #9fc5e8;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;">JMXClient.jar 192.168.1.1 9999 admin jmxpass info</span></span></span></span></i></span></i></span></div><div><span class="Apple-style-span" style="line-height: 16px;"><i><span class="Apple-style-span" style="color: #666666;"><span class="Apple-style-span" style="line-height: normal;"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;"><br />
</span> </span><span class="Apple-style-span" style="font-size: small;"> </span><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;"> </span></span></span></span></i></span></div><div><span class="Apple-style-span" style="line-height: 16px;"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;">To use, do the following to obtain usage: </span></span></span><br />
<span class="Apple-style-span" style="line-height: 16px;"><span class="Apple-style-span" style="font-family: Verdana, sans-serif;"><span class="Apple-style-span" style="font-size: small;"></span></span><code><span class="Apple-style-span" style="color: blue;"><span class="Apple-style-span" style="background-color: #cccccc;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;"># java -jar skajla-</span></span></span></span></code><span class="Apple-style-span" style="color: blue;"><span class="Apple-style-span" style="background-color: #cccccc;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;">JMXClient.jar</span></span><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;"> </span></span></span></span></span><br />
<span class="Apple-style-span" style="line-height: 16px;"><span class="Apple-style-span" style="color: blue;"><span class="Apple-style-span" style="background-color: #cccccc;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;"></span></span><span class="Apple-style-span" style="color: black;"><i><span class="Apple-style-span" style="color: #666666;"><span class="Apple-style-span" style="background-color: white;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;">Usage :<span class="Apple-style-span" style="color: black; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: medium; font-style: normal;"><i><span class="Apple-style-span" style="color: #666666;"><span class="Apple-style-span" style="color: black; font-style: normal;"><i><span class="Apple-style-span" style="color: blue;"><span class="Apple-style-span" style="background-color: #cccccc;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;">skajla-JMXClient.jar</span></span></span></span></i></span></span></i></span></span></span></span></span></i></span></span></span></span></div><div><div><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: small; line-height: 16px;"></span><br />
<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: small; line-height: 16px;"></span><br />
<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: small; line-height: 16px;"></span><br />
<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: small; line-height: 16px;"></span><br />
<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: small; line-height: 16px;"><div><i><span class="Apple-style-span" style="color: #666666;"><u><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;">OR, To Display All Registered bean info </span></span></u></span></i></div><div><i><span class="Apple-style-span" style="color: blue;"><span class="Apple-style-span" style="color: black; font-style: normal;"><i><span class="Apple-style-span" style="color: blue;"><span class="Apple-style-span" style="background-color: #cccccc;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;">skajla-JMXClient.jar </span></span></span></span></i></span><span class="Apple-style-span" style="background-color: #cccccc;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;"> </span></span><jmx ip="" server=""><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;"> </span></span><jmx port=""><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;"> </span></span><jmx user=""><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;"> </span></span><jmxpass><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;"> <info></info></span></span></jmxpass></jmx></jmx></jmx></span></span></i></div><div><i><span class="Apple-style-span" style="color: #666666;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;">Note : Provide multiple commands & attributes separated by comma(,)</span></span></span></i></div></span></div><div><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: small; line-height: 16px;"><br />
</span></div><div><span class="Apple-style-span" style="line-height: 16px;"><b><u><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="font-size: small;">Command </span></span></u></b></span><span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b><u><span class="Apple-style-span" style="font-size: small;">Options Description:</span></u><span class="Apple-style-span" style="font-size: small;"> </span></b></span></span></span><br />
<span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b><span class="Apple-style-span" style="font-size: small;"></span><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; font-weight: normal;">JMX Server IP : IP Address of the jmx server </span></b></span></span></span><br />
<span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; font-weight: normal;">JMX PORT : Port on which JMX service is running <br>JMX USER : Username required to connect to the JMX </span></b></span></span></span><br />
<span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; font-weight: normal;">JMX PASSWORD : Password required to connect to the JMX </span></b></span></span></span><br />
<span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; font-weight: normal;">MESSAGE BEAN : Target Bean for which attribute Value is required </span></b></span></span></span><br />
<span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; font-weight: normal;">COMMAND : Operation to run or attribute to fetch, Attributes begin with<br>a capital letter. </span></b></span></span></span><br />
<span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; font-weight: normal;">ATTRIBUTE : Optional, require in the cases when command output into multiple values<br>e.g Max Heap Memory Value. </span></b></span></span></span></div><div><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;"></span><br />
<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;"></span><br />
<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;"></span><br />
<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;"></span><br />
<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px;"><pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><b><span class="Apple-style-span" style="font-family: monospace;"><u>Requirement:</u><span class="Apple-style-span" style="font-weight: normal;">
JDK1.6,If connecting to a SUN 1.5.0 JDK JMX Agent, remote side must be started with
system properties such as the following:
-Dcom.sun.management.jmxremote.port=
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false</span></span></b></span></pre></span></div><div><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: small; line-height: 16px;"><span class="Apple-style-span" style="font-size: 13px; line-height: normal;"></span></span><br />
<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: small; line-height: 16px;"><span class="Apple-style-span" style="font-size: 13px; line-height: normal;"></span></span><br />
<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: small; line-height: 16px;"><span class="Apple-style-span" style="font-size: 13px; line-height: normal;"></span></span><br />
<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: small; line-height: 16px;"><span class="Apple-style-span" style="font-size: 13px; line-height: normal;"></span></span><br />
<span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: small; line-height: 16px;"><span class="Apple-style-span" style="font-size: 13px; line-height: normal;"><pre><b><u><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="-webkit-text-decorations-in-effect: none; font-family: Verdana, Helvetica, Arial, sans-serif; font-weight: normal; white-space: normal;">
<pre style="display: inline !important; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; white-space: normal;">
<pre style="display: inline !important; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><u>Download Executable JAR File:</u></b></pre></span></pre></span></span></u></b></pre><pre><b><u><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"><span class="Apple-style-span" style="-webkit-text-decorations-in-effect: none; font-family: Verdana, Helvetica, Arial, sans-serif; font-weight: normal; white-space: normal;">
<pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; white-space: normal;">
<pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><u><a href="http://jmxclient.svn.sourceforge.net/viewvc/jmxclient/skajla-JMXClient.jar?revision=3">http://jmxclient.svn.sourceforge.net/viewvc/jmxclient/skajla-JMXClient.jar?revision=3</a></u></b></pre></span></pre></span></span></u></b></pre><pre><b><u><span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">Download Source Code:
<span class="Apple-style-span" style="-webkit-text-decorations-in-effect: none; font-family: monospace; font-weight: normal;"><a href="http://sourceforge.net/projects/jmxclient/">http://sourceforge.net/projects/jmxclient/</a></span></span></u></b></pre><pre></pre><pre></pre><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0ZQakl2c2RLHg6M1hxFvfLMzcxh8UYt1q9cUCNRrRk5ZPOAgf46aJHYkqAWoaihUqD5WB6nivPMJlhnRKgkadKGJp6JUw9RJJLlbcSEUiZ95Ok7Wq6CRtLUNovuW6fjvfLsMndsb4hryq/s1600/CodeExplorer.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0ZQakl2c2RLHg6M1hxFvfLMzcxh8UYt1q9cUCNRrRk5ZPOAgf46aJHYkqAWoaihUqD5WB6nivPMJlhnRKgkadKGJp6JUw9RJJLlbcSEUiZ95Ok7Wq6CRtLUNovuW6fjvfLsMndsb4hryq/s320/CodeExplorer.jpg" /></a></div><pre></pre><pre></pre><pre></pre><pre><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; white-space: normal;">
<pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><u>
</u></b></pre><pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><u>
</u></b></pre><pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><u>
</u></b></pre><pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><u>
</u></b></pre><pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><u>
</u></b></pre><pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><u>
</u></b></pre><pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><u>
</u></b></pre><pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><u>
</u></b></pre><pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><u>
</u></b></pre><pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><u>
</u></b></pre><pre style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><b><u>
</u></b></pre><div><span class="Apple-style-span" style="font-family: monospace;"><span class="Apple-style-span" style="white-space: pre;"><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif;"><span class="Apple-style-span" style="white-space: normal;"><b><u>
</u></b></span></span></span></span></div></span></pre></span></span></div><div><span class="Apple-style-span" style="font-family: Verdana, Helvetica, Arial, sans-serif; font-size: small; line-height: 16px;"><br />
</span></div></div>S.Kajlahttp://www.blogger.com/profile/15447006762999009647noreply@blogger.com0tag:blogger.com,1999:blog-6099767914507284771.post-87441323558923080602009-11-09T06:32:00.000-08:002010-03-30T14:20:06.539-07:00How to Check Jar File Version<div><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style=" -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;"><span class="Apple-style-span" style="font-size:small;">To have access to the version of a jar file, you should have access to the jar file. Precisely, you need to take a look at the jar file's manifest.</span></span></span></div><div><span class="Apple-style-span" style="font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;"><span class="Apple-style-span" style=" -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><span class="Apple-style-span" style="font-size:small;"><br /></span></span></span></div><div><span class="Apple-style-span" style="font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;"><span class="Apple-style-span" style=" -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"><span class="Apple-style-span" style="font-size:small;">In case of the J2EE application </span></span></span></div><div><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"><br /></span></span></div><div><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">String checkjarFilevesion() {</span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">try {</span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">if(logger.isInfoEnabled())</span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">logger.info("Verifying Jar Version");</span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> <span class="Apple-style-span" style="font-family: Georgia, serif; white-space: normal; "><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">String jarFilePath = Thread.currentThread().getContextClassLoader().getResource("../lib/javax.</span></span><jar><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">jar").getPath().replaceAll("%20", " ").toString();</span></span></jar></span></span></span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">JarFile jarfile = new JarFile(jarFilePath);</span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> <span class="Apple-style-span" style="font-family: Georgia, serif; white-space: normal; "><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">//Implementation-Version: 3.2.6.SP1</span></span></span></span></span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">Manifest manifest = jarfile.getManifest();</span></span><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">String version = manifest.getMainAttributes().getValue("Implementation-Version");</span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> return version;</span></span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span><span class="Apple-style-span" style=" white-space: normal; "><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">} catch (IOException e) {</span></span></span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span></span><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">// TODO Auto-generated catch block</span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span></span><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">if(logger.isInfoEnabled())</span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span></span><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">logger.info("Invalid JAR file path");</span></span><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">}</span></span><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span></div><div><span class="Apple-tab-span" style="white-space:pre"><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';"> </span></span></span><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">return null;</span></span></div><div><span class="Apple-style-span" style="font-size:small;"><span class="Apple-style-span" style="font-family:'courier new';">}</span></span></div>S.Kajlahttp://www.blogger.com/profile/15447006762999009647noreply@blogger.com0tag:blogger.com,1999:blog-6099767914507284771.post-14913290112644835132009-11-05T00:13:00.000-08:002010-03-30T14:13:04.455-07:00Absolute Path in J2EE Application<span class="Apple-style-span" style=" -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; font-family:verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;font-size:13px;"><span id="intelliTxt" name="intelliTxt"><div><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size: small;"><b><i><br /></i></b></span></span></div><div><span class="Apple-style-span" style="font-size: small; "><span class="Apple-style-span" style="font-family:'courier new';"><b><i>String jarFilePath = Thread.currentThread().getContextClassLoader().getResource("../lib/javax.jar").getPath().replaceAll("%20", " ");</i></b></span></span></div></span><div></div></span>S.Kajlahttp://www.blogger.com/profile/15447006762999009647noreply@blogger.com0tag:blogger.com,1999:blog-6099767914507284771.post-70729715607417280962009-04-22T21:13:00.000-07:002009-06-03T10:40:35.038-07:00Submitting Get request as POST using Javascript - DOM<span class="Apple-style-span" style="font-family:'courier new';">f<span class="Apple-style-span" style="font-size:small;">unction dynamicSubmitForm(link)</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;">{</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> var myURL = link.split('?');</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> var formObj = document.createElement("form");</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> formObj.name = "KTDynaForm";</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> formObj.id = "KTDynaForm";</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> formObj.action = myURL[0];</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> formObj.method = "POST";</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> formObj.setAttribute("style", "display:none;");</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> if(myURL[1]!=null)</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> {</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> var urlArguments = myURL[1].split('&');</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> for(var i=0;i<</span><urlarguments.length;i++) >urlArguments.length;i++)</URLARGUMENTS.LENGTH;I++) ></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span style="WHITE-SPACE: pre" class="Apple-tab-span"><span class="Apple-style-span" style="font-size:small;"></span></span><span class="Apple-style-span" style="font-size:small;">{</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span style="WHITE-SPACE: pre" class="Apple-tab-span"><span class="Apple-style-span" style="font-size:small;"></span></span><span class="Apple-style-span" style="font-size:small;">var actionString = urlArguments[i].split("="); </span><span style="WHITE-SPACE: pre" class="Apple-tab-span"><span class="Apple-style-span" style="font-size:small;"> </span></span><span class="Apple-style-span" style="font-family:Georgia;"><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;">var inputObj = document.createElement("input");</span></span></span></span><br /><span style="WHITE-SPACE: pre" class="Apple-tab-span"><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"></span></span></span><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> inputObj.type = "hidden";</span></span><br /><span style="WHITE-SPACE: pre" class="Apple-tab-span"><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"></span></span></span><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> inputObj.value = actionString[1];</span></span><br /><span style="WHITE-SPACE: pre" class="Apple-tab-span"><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"></span></span></span><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> inputObj.name = actionString[0];</span></span><br /><span style="WHITE-SPACE: pre" class="Apple-tab-span"><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"></span></span></span><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> formObj.appendChild(inputObj);</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span style="WHITE-SPACE: pre" class="Apple-tab-span"><span class="Apple-style-span" style="font-size:small;"></span></span><span class="Apple-style-span" style="font-size:small;">}</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> }</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"><br /></span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> document.body.appendChild(formObj);</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> formObj.submit();</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;"> return true;</span></span><br /><span class="Apple-style-span" style="font-family:'courier new';"><span class="Apple-style-span" style="font-size:small;">}</span></span>S.Kajlahttp://www.blogger.com/profile/15447006762999009647noreply@blogger.com0