JBOSS Console Page Memory Check

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

Moderators: Moderators, Developers

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

JBOSS Console Page Memory Check

#1 Post by vanc » Mon Apr 03, 2006 10:13 am

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
ls_jboss_check.PNG
JBOSS Memory Graph
ls_jboss_check.PNG (230.86 KiB) Viewed 24067 times
jboss_manage_cons2.PNG
jboss_manage_cons2.PNG
jboss_manage_cons2.PNG (182.89 KiB) Viewed 24067 times
capture_ps_webconsole.pl.txt
JBOSS Console Web Page Get Contents Script
(1017 Bytes) Downloaded 1197 times
cacti_graph_template_jboss_mem_check.xml
Graph Template for JBOSS Memory Check
(18.47 KiB) Downloaded 1318 times
cacti_host_template_policy_server.xml
Host Template for our "Policy Server", basic Linux machine, with JBOSS Mem Graphing.
(220.6 KiB) Downloaded 1300 times

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

#2 Post by hatim » Fri Sep 15, 2006 5:25 am

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

#3 Post by hatim » Fri Sep 15, 2006 5:11 pm

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

#4 Post by gturner » Tue Sep 26, 2006 6:29 pm

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

#5 Post by arfat » Mon Aug 08, 2011 2:04 am

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

#6 Post by parth » Mon Mar 18, 2013 3:41 pm

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

Post Reply