[Xymon] jboss monitorin

Marco Avvisano marco.avvisano at regione.toscana.it
Fri Sep 21 13:02:39 CEST 2012


  Hi Andy,
to get attributes from ThreadPool bean, in jboss 5.1.0, i added this 
code in your tcl script

  jboss.web:type=ThreadPool.* {
      foreach {a} $attr {
        debug_print "Fetching I attribute $a from mbean $mb"
             set e [exec "/opt/jboss-5.1.0.GA/bin/twiddle.sh" -s 
$IP_ADDR:$JNDI_PORT get $mb $a ]
             set d [lindex [split $e =] 1]
              debug_print "data 1 for $a returned was $d - $e"
           set line [list $a $d $colour ""]
           V add row $line
           set i [expr $i + 1]
         }
         set status [ setstatus $attr $j $mb ]
       }


M.
Il 18/09/2012 15.41, Marco Avvisano ha scritto:
> Directory permissions seem are ok ..
>
> drwxr-xr-x  12 root    root     4096 Aug 29 11:41 opt
> drwxr-xr-x  6 hobbit  hobbit   4096 Sep 18 14:32 hobbit
> drwxrwxr-x 8 hobbit hobbit     4096 Mar 20 18:28 client
> drwxr-xr-x 2 hobbit hobbit 4096 Sep 18 14:32 etc
>
> M.
>
> Il 18/09/2012 13.39, Henrik Størner ha scritto:
>> On 18-09-2012 13:37, Marco Avvisano wrote:
>>> Hi Andy,
>>> seems that there is a problem to load hosts.cfg, i don't know why ..
>>>
>>> /opt/hobbit/client/bin/xymoncmd /opt/hobbit/client/bin/xymongrep 
>>> jmxstat
>>> 2012-09-18 13:26:03 Using default environment file
>>> /opt/hobbit/client/etc/xymonclient.cfg
>>> 2012-09-18 13:26:03 Cannot load /opt/hobbit/client/etc/hosts.cfg, or
>>> file is empty
>>>
>>>   more /opt/hobbit/client/etc/hosts.cfg
>>> 0.0.0.0 myserver-jboss03 # noconn jmxstat
>>> 0.0.0.0 myserver-jboss05 # noconn jmxstat
>>> 0.0.0.0 myserver-jboss07 # noconn jmxstat
>>>
>>> ll /opt/hobbit/client/etc/hosts.cfg
>>> -rw-rw-r-- 1 hobbit hobbit 121 Sep 17 10:02
>>> /opt/hobbit/client/etc/hosts.cfg
>>
>> Directory permissions on /opt, /opt/hobbit, /opt/hobbit/client and 
>> /opt/hobbit/client/etc ?
>>
>>
>> Regards,
>> Henrik
>>
>> _______________________________________________
>> Xymon mailing list
>> Xymon at xymon.com
>> http://lists.xymon.com/mailman/listinfo/xymon
>>
>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com
> http://lists.xymon.com/mailman/listinfo/xymon
>




More information about the Xymon mailing list