<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
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 " .<br>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 ?<br>thanks , please give me some tips ..<br><br><hr id="stopSpelling">Date: Thu, 20 Nov 2008 10:52:09 +0100<br>From: cabedogni@gmail.com<br>To: hobbit@hswn.dk<br>Subject: Re: [hobbit] how to monitoring jboss<br><br>it's look ok ? when i run the script i have this output " Unrecognized JBoss Version "<br><br>#!/bin/sh<br>## JBoss Hobbit Plugin<br>##<br>export JBOSS_SERVER=$1<br>export JBOSS_VERSION=$2<br>export JBOSS_MBEAN=$3<br>
export JMX_ATTR=$4<br>export WARN=$5<br>export CRITICAL=$6<br><br>#####################################################<br>## Configure these for your environment<br>#####################################################<br>
export JBOSS4_HOME=/home/jboss/<a href="http://jboss-4.2.3.GA">jboss-4.2.3.GA</a><br>#export JBOSS3_HOME=/home/jboss/jboss-3.2.7<br>export JAVA_HOME=/usr/java/jdk1.5.0_15<br>#####################################################<br>
<br><br><br><br>if [[ $1 = "--help" ||  $1 = "--h" || $1 = "-help" || $1 = "-h"  ]]; then<br>        echo check_jbossjmx Usage<br>        echo "jbossJMX_plugin <JBoss Server URL> <JBoss Version 3|4> <JBoss MBean Object Name> <JBoss MBean Attribute> <Warn Threshhold> <Critical Threshhold>"<br>
        exit 3<br>fi<br><br>if [ "$JBOSS_VERSION" =  "3" ]; then<br>        export TWIDDLE=$JBOSS3_HOME/bin/twiddle.sh<br>else<br>        if [ "$JBOSS_VERSION" =  "4" ]; then<br>                export TWIDDLE=$JBOSS4_HOME/bin/twiddle.sh<br>
        else<br>                echo "Unrecognized JBoss Version:" $JBOSS_VERSION<br>                exit 3<br>        fi<br>fi<br><br>export READING=`$TWIDDLE -s $JBOSS_SERVER  get $JBOSS_MBEAN $JMX_ATTR | awk '{split($1,names,"="); print names[2]; }' `<br>
<br><br><div class="EC_gmail_quote">On Tue, Nov 18, 2008 at 5:05 PM, Rakesh Nair <span dir="ltr"><<a href="mailto:k.rakeshnair@gmail.com">k.rakeshnair@gmail.com</a>></span> wrote:<br><blockquote class="EC_gmail_quote" style="padding-left: 1ex;">
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.<br><br>thanks<br>Rakz<div><div></div><div class="EC_Wj3C7c"><br><br>
<div class="EC_gmail_quote">On Tue, Nov 18, 2008 at 9:02 PM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com">ralphmitchell@gmail.com</a>></span> wrote:<br>
<blockquote class="EC_gmail_quote" style="padding-left: 1ex;">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 <br>

<br>   echo "JMX ATTRIBUTE......"<br><br>you should be able to replace that with something like: <br>
<br>   $BB $BBDISP "status $MACHINE.jboss green `date`"<br><br>where "green" would be "red" or "yellow" for the CRITICAL and WARNING statuses.  The script would be launched by Hobbit on the jboss machine.<div>

<div></div><div><br>
<br>Ralph Mitchell<br><br><br><div class="EC_gmail_quote">On Tue, Nov 18, 2008 at 9:17 AM, Carlo Alberto Bedogni <span dir="ltr"><<a href="mailto:cabedogni@gmail.com">cabedogni@gmail.com</a>></span> wrote:<br>

<blockquote class="EC_gmail_quote" style="padding-left: 1ex;">
Thanks a lot for your reply. but i looking for something more accurate like the jboss plugin for nagios ( <a href="http://www.jboss.org/community/docs/DOC-10676">http://www.jboss.org/community/docs/DOC-10676</a> ) i don't know if is possibile find someting similar for hobbit , or maybe convert the nagios plugin for hobbit .....<br>



<br>thanks <br><div><div></div><div><br><div class="EC_gmail_quote">On Tue, Nov 18, 2008 at 3:57 PM, Ralph Mitchell <span dir="ltr"><<a href="mailto:ralphmitchell@gmail.com">ralphmitchell@gmail.com</a>></span> wrote:<br>


<blockquote class="EC_gmail_quote" style="padding-left: 1ex;">
If jboss is just handing out some kind of web page, you could do something like this in your server/etc/bb-hosts:<br><br>   a.b.c.d <a href="http://myboss.server.com">myboss.server.com</a>   # <a href="http://myjboss.server.com/">http://myjboss.server.com/</a><br>




<br>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.<br>



<font color="#888888">
<br>Ralph Mitchell</font><div><div></div><div><br><br><br><div class="EC_gmail_quote">On Tue, Nov 18, 2008 at 3:17 AM, Carlo Alberto Bedogni <span dir="ltr"><<a href="mailto:cabedogni@gmail.com">cabedogni@gmail.com</a>></span> wrote:<br>



<blockquote class="EC_gmail_quote" style="padding-left: 1ex;">
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.<br>I have take a look at <a href="http://deadcat.net.au">deadcat.net.au</a> but i can't find nothing about jboss. any idea?<br>





<br>thanks in advatage<br><font color="#888888">Carlo<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br><br /><hr />Color coding for safety: Windows Live Hotmail alerts you to suspicious email. <a href='http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008 ' target='_new'>Sign up today.</a></body>
</html>