JBOSS Console Page Memory Check

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
vanc
Posts: 30
Joined: Thu Mar 02, 2006 2:54 pm
Location: Boston MA USA
Contact:

JBOSS Console Page Memory Check

Post by vanc »

This script monitors 4 variables from your JBOSS Management Console Page (See Below) and graphs them on a single graph (See Below).

Note: that I subtract Free Memory from Total Memory to give us Used Memory.

I used the basics from the WeatherBug.pl script so thank you Alives!

This script requires the LWP::Simple and Crypt:SSLeay, if like me, your JBOSS Console page is running secure as http(S).

* Enter the IP Addr of your server running JBOSS, additionally, the perl script may need to be "tweaked" according to the location of your jboss server web dir. and file location.

VANC

NOTE: the deft use of MSPAINT :)
Attachments
JBOSS Memory Graph
JBOSS Memory Graph
ls_jboss_check.PNG (230.86 KiB) Viewed 25339 times
jboss_manage_cons2.PNG
jboss_manage_cons2.PNG
jboss_manage_cons2.PNG (182.89 KiB) Viewed 25339 times
capture_ps_webconsole.pl.txt
JBOSS Console Web Page Get Contents Script
(1017 Bytes) Downloaded 1248 times
cacti_graph_template_jboss_mem_check.xml
Graph Template for JBOSS Memory Check
(18.47 KiB) Downloaded 1382 times
cacti_host_template_policy_server.xml
Host Template for our "Policy Server", basic Linux machine, with JBOSS Mem Graphing.
(220.6 KiB) Downloaded 1343 times
hatim
Posts: 2
Joined: Fri Sep 15, 2006 5:22 am

Post by hatim »

Good Work !

Thank you for sharing that.

How about if we musqt use a username/password to access a to the web console of jboss

https://server:8443/web-console/ ?

Thank you
hatim
Posts: 2
Joined: Fri Sep 15, 2006 5:22 am

Post by hatim »

Ok i found it
in private network , you can add the user and password in the URL like that :
my $httpaddr = "https://user\:password\@".$ARGV[0].":8443/web-console/ServerInfo.jsp"

Hatim Bekkali
http://www.syloe.com
gturner
Posts: 5
Joined: Tue Sep 26, 2006 5:47 pm

Post by gturner »

Alternatively, if you use the JBoss all configuration in your environment (or perhaps copying server/all/deploy/snmp-adaptor.sar to server/default/deploy would work as well), you can use the SNMP Agent built into JBoss. This should be a little more efficient than screen scraping the jmx-console JSPs and it exposes additional JMX attributes (configurable).

Have a look at this post.
arfat
Posts: 2
Joined: Mon Aug 08, 2011 1:40 am

Re: JBOSS Console Page Memory Check

Post by arfat »

How to configure the SNMP with JBOSS.

Pls send. What changes v had to made in JBOSS to c the Graphing.

Thanks in Advance.
parth
Posts: 2
Joined: Mon Mar 18, 2013 3:34 pm

Re: JBOSS Console Page Memory Check

Post by parth »

How Do I add JVM Memory pool monitoring with the JBOSS SNMP ? Please help ??
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests