Luca Foppiano wrote:
On Mon, 2008-03-10 at 16:52 +0100, Luca Foppiano wrote:
thanks a lot. I will post here. Now I need to finish and clean useless
parts.
Finally (thanks to M. DeHaan for his suggestions), I finish to write
simple script to get jboss istances information.
With this script, is possibile to get, for each systems, ports, pid,
istance name and bind address.
With this informations is also possibile to add some checks (for example
when an istance is up but doesn't listen any ports).
Outstanding work. This is great!
Here there's a sample output information:
-bash-3.2$ python testJbossIstances.py
== JBoss istances monitor ==
* host:rh5i386_local.byte-code.lan
* host:fc8-b.byte-code.lan
- (1687, 'default', '192.168.33.148', [3873, 8009, 1098, 1099, 8080,
8083, 4444, 8093, 4445, 4446])
* host:fc8-a.byte-code.lan
- (1617, 'default', '192.168.33.141', [3873, 8009, 1098, 1099, 8080,
8083, 4444, 8093, 4445, 4446])
- (1790, 'test', '127.0.0.1', [3873, 8009, 1098, 1099, 8080, 8083,
4444, 8093, 4445, 4446])
-bash-3.2$
The main goal is to integrate into funcweb (I haven't see yet)..
what do you think?
I will defer to others wrt funcweb.
--
jesus m. rodriguez | jesusr@xxxxxxxxxx
sr. software engineer | irc: zeus
red hat network | 919.754.4413 (w)
rhce # 805008586930012 | 919.623.0080 (c)
+-------------------------------------------+
| "Those who cannot learn from history |
| are doomed to repeat it." |
| -- George Santayana |
+-------------------------------------------+
_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list