[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [hobbit] how to monitoring jboss
- To: <hobbit (at) hswn.dk>
- Subject: RE: [hobbit] how to monitoring jboss
- From: carlo <carlainz (at) hotmail.com>
- Date: Fri, 21 Nov 2008 08:28:18 +0000
- Importance: Normal
- References: <fcae99e70811180117s21111a22vea8ea8956ec1e399 (at) mail.gmail.com> <997a524e0811180657w79b08fc2nf5f8aad5bc6cd9ad (at) mail.gmail.com> <fcae99e70811180717oac63794jc6ab458ed79db368 (at) mail.gmail.com> <997a524e0811180732t4d5b9b4fr81988008a3462363 (at) mail.gmail.com> <fe86c20e0811180805n3e4017ceg73024adf9bb0e4ef (at) mail.gmail.com> <fcae99e70811200152v4f70eefbnc38bfaca1ff5efc4 (at) mail.gmail.com>
Hi me also i have this problem i need to monitoring jboss ... when i try to launch this script i have also the " Unrecognized JBoss Version " .
this script is for the hobbit server or for the jboss client ? if i understand is for the hobbit server , and the twiddle for the jboss server ... right ?
thanks , please give me some tips ..
Date: Thu, 20 Nov 2008 10:52:09 +0100
From: cabedogni (at) gmail.com
To: hobbit (at) hswn.dk
Subject: Re: [hobbit] how to monitoring jboss
it's look ok ? when i run the script i have this output " Unrecognized JBoss Version "
#!/bin/sh
## JBoss Hobbit Plugin
##
export JBOSS_SERVER=$1
export JBOSS_VERSION=$2
export JBOSS_MBEAN=$3
export JMX_ATTR=$4
export WARN=$5
export CRITICAL=$6
#####################################################
## Configure these for your environment
#####################################################
export JBOSS4_HOME=/home/jboss/jboss-4.2.3.GA
#export JBOSS3_HOME=/home/jboss/jboss-3.2.7
export JAVA_HOME=/usr/java/jdk1.5.0_15
#####################################################
if [[ $1 = "--help" || $1 = "--h" || $1 = "-help" || $1 = "-h" ]]; then
echo check_jbossjmx Usage
echo "jbossJMX_plugin <JBoss Server URL> <JBoss Version 3|4> <JBoss MBean Object Name> <JBoss MBean Attribute> <Warn Threshhold> <Critical Threshhold>"
exit 3
fi
if [ "$JBOSS_VERSION" = "3" ]; then
export TWIDDLE=$JBOSS3_HOME/bin/twiddle.sh
else
if [ "$JBOSS_VERSION" = "4" ]; then
export TWIDDLE=$JBOSS4_HOME/bin/twiddle.sh
else
echo "Unrecognized JBoss Version:" $JBOSS_VERSION
exit 3
fi
fi
export READING=`$TWIDDLE -s $JBOSS_SERVER get $JBOSS_MBEAN $JMX_ATTR | awk '{split($1,names,"="); print names[2]; }' `
On Tue, Nov 18, 2008 at 5:05 PM, Rakesh Nair <k.rakeshnair (at) gmail.com> wrote:
Yes.. you have to convert that into that format for getting the information from the script to the Hobbit, since Hobbit understands only that kind of details.
thanks
Rakz
On Tue, Nov 18, 2008 at 9:02 PM, Ralph Mitchell <ralphmitchell (at) gmail.com> wrote:
Well, I don't have a jboss I can experiment with, but the script from that link looks easy enough to modify. At the end, where it does
echo "JMX ATTRIBUTE......"
you should be able to replace that with something like:
$BB $BBDISP "status $MACHINE.jboss green `date`"
where "green" would be "red" or "yellow" for the CRITICAL and WARNING statuses. The script would be launched by Hobbit on the jboss machine.
Ralph Mitchell
On Tue, Nov 18, 2008 at 9:17 AM, Carlo Alberto Bedogni <cabedogni (at) gmail.com> wrote:
Thanks a lot for your reply. but i looking for something more accurate like the jboss plugin for nagios ( http://www.jboss.org/community/docs/DOC-10676 ) i don't know if is possibile find someting similar for hobbit , or maybe convert the nagios plugin for hobbit .....
thanks
On Tue, Nov 18, 2008 at 3:57 PM, Ralph Mitchell <ralphmitchell (at) gmail.com> wrote:
If jboss is just handing out some kind of web page, you could do something like this in your server/etc/bb-hosts:
a.b.c.d myboss.server.com # http://myjboss.server.com/
or whatever would be an appropriate url for it. That'll let you know jbos is up and responding. I'm doing something like this already. I don't have either access or permission (company policy - thou shalt use CA Unicenter for everything) to run anything on the servers themselves, but I imagine Unicenter is checking that the processes are running and maybe checking log files too.
Ralph Mitchell
On Tue, Nov 18, 2008 at 3:17 AM, Carlo Alberto Bedogni <cabedogni (at) gmail.com> wrote:
Hi all i'm running hobbit 4.2 and i need to monitoring jboss , both , the hobbit and the jboss server are running on a centos box.
I have take a look at deadcat.net.au but i can't find nothing about jboss. any idea?
thanks in advatage
Carlo
_________________________________________________________________
Color coding for safety: Windows Live Hotmail alerts you to suspicious email.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008