[hobbit] Hobbit_perl_client_1.21 beastat.pl
Williams, Doug (Consultant-RIC)
Doug.Williams at rhd.com
Thu Nov 19 00:19:20 CET 2009
Unsure if anyone interested, but for general FYI, I got beastat.pl
working on the Hobbit client(s) by (in addtion to doing everything
suggested in supplied documentation):
On Hobbit server, modify bb-hosts to look like:
# BEA Servers
0.0.0.0 prdAcrm1_01.crmServer # noconn
0.0.0.0 prdAcrm2_01.crmServer # noconn
0.0.0.0 prdAcrm3_01.crmServer # noconn
0.0.0.0 prdAcrm4_01.crmServer # noconn
On Hobbit client to run the Weblogic tests now, modify bb-hosts:
# BEA Servers
0.0.0.0 prdAcrm1_01 # noconn nodisp beastat
0.0.0.0 prdAcrm1_01.crmServer # noconn beaping
0.0.0.0 prdAcrm2_01 # noconn nodisp beastat
0.0.0.0 prdAcrm2_01.crmServer # noconn beaping
0.0.0.0 prdAcrm3_01 # noconn nodisp beastat
0.0.0.0 prdAcrm3_01.crmServer # noconn beaping
0.0.0.0 prdAcrm4_01 # noconn nodisp beastat
0.0.0.0 prdAcrm4_01.crmServer # noconn beaping
# Edit Hobbit_fd_lib.pm, find and comment out line:
# From:
&check_env_var("BBVAR",1);
# To:
#&check_env_var("BBVAR",1);
# Edit beastat.pl, and in "sub get_bea_state"
# Below line:
foreach $line (@serverlist) {
# Insert the following 2 lines:
$line =~ s/^\s+//g;
$line =~ s/\s+$//g;
# so, you should have:
foreach $line (@serverlist) {
$line =~ s/^\s+//g;
$line =~ s/\s+$//g;
# Find this line a little farther down, and comment it out:
# From:
($servstate) = ($status =~ /.*(Current.*"$line".*)\n.*/);
# To:
#($servstate) = ($status =~ /.*(Current.*"$line".*)\n.*/);
# And put the following line below it (above commented out line) or in
it's place (don't think it's really needed but didn't want to trace
through everything, so put it just in case:
$servstate = $status . "\n";
# A wee bit farther down, change this line:
# From:
$text_event = "$servstate";
# To:
$text_event = "$status\n";
===============
Thanks
Doug
-----Original Message-----
From: Williams, Doug (Consultant-RIC)
Sent: Monday, November 16, 2009 7:27 PM
To: 'hobbit at hswn.dk'
Subject: RE: [hobbit] Hobbit_perl_client_1.21 beastat.pl
Well, not to flog road-kill, but it was only lightning in a bottle. Got
it to work for one BEA server instance on the client, and can't
duplicate for other BEA instance on that client.
Any ideas welcome.
Thanks
Doug
-----Original Message-----
From: Williams, Doug (Consultant-RIC) [mailto:Doug.Williams at rhd.com]
Sent: Monday, November 16, 2009 6:00 PM
To: hobbit at hswn.dk
Subject: RE: [hobbit] Hobbit_perl_client_1.21 beastat.pl
I got it working. The key was to include in client's (papp01) Hobbit
bb-hosts the hostname of the server (papp01) where the BEA Weblogic
instance resides, so I have the following in the client's (papp01)
Hobbit's bb-hosts:
# Servers
144.163.58.57 papp01 # ssh ntp
# BEA Servers
0.0.0.0 prdAcrm1_01 # noconn nodisp beastat
0.0.0.0 prdAcrm1_01.crmServer # noconn beaping
And all of the above also in the Hobbit Server's bb-hosts
Not sure if commenting out the BBVAR check is the expected way to get it
past the missing BBVAR check, but it works.
Thanks
Doug
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk
More information about the Xymon
mailing list