Xymon Mailing List Archive search

bb-prtdiag and temperature.sh question.

5 messages in this thread

list Robert P. McGraw · Tue, 24 Jan 2006 10:29:50 -0500 ·
Richard,

Thanks for your reply. 

When I think I understand how hobbit works, I seem to get confused again.

I see the modifications you suggest in hobbitclient.cfg and bb-prtdiag. No
problem in making these. 

I am confused where to set it to execute.

Let me see if I got how hobbit works on the client.

1) Hobbitlaunch reads the clientlaunch.cfg file.

2) Clientlaunch.cfg file reads hobbitclient.cfg file and executes
hobbitclient.sh

3) hobbitclient.sh calls hobbitclient-sunos.sh (in my case) which executes
the programs in hobbitclient-sunos.sh and writes the output to msg.txt.

4 hobbitclient.sh sends msg.txt to the $BBDISP.

Now I want to execute the bb-prtdiag and bb-prtdiag seems to send the data
to $BBDISP inside the script. 

Do I put the execution of $BBDISP in clientlaunch.cfg?

What do I need to do on the server side for this to show up in the hobbit
html?

Thanks

Robert

       
From: Deal, Richard [mailto:user-f6f804cb0a50@xymon.invalid] 
Sent: Tuesday, January 24, 2006 8:48 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Repeat entries in bb-hosts

I didn’t have to modify bb-prtdiag at all to get it running under the hobbit
client.
You will have to modify the etc/hobbitclient.cfg file to represent your
environment and the bb-prtdiag modifications should also be added.
I have these lines added to hobbitclient.cfg:
(might be some line modification by email but you get the idea)
#
#from prtdiag script
#
UNAME="/sbin/uname"
#PLATFORM_SPEC=`${UNAME} -i`
#PRTDIAG_COMMAND="/usr/platform/${PLATFORM_SPEC}/sbin/prtdiag"
PRTDIAG_OPT="-v"
ZONENAME=/usr/bin/zonename
#Systems that don't support temperature checks
EXCLUDE_SYSTEMS="Ultra-1 Ultra-2 Ultra-5_10 Ultra-30 Ultra-60 Ultra-80
UltraAX-i
2 UltraSPARC-IIi-cEngine Sun-Fire Netra-T4 UltraAX-e2
Ultra-Enterprise-10000"
PRTDIAG_IGNORE_ERRORS="No failures|Most recent AC Power Failure|Minimum
Availabl
e|CS Fail|No Hardware failures|^===|currently no Boards|Fault     Fan"
PRTDIAG_IGNORE_FAULTS="No Recent System Faults found|No System Faults
found|Faul
t Value|Fault LED|NO_FAULT|Power  Fault|Status        Fault|Fault          
off"
LOM_COMMAND="/usr/sbin/lom"
LOM_OPT="-pfvt"

Woops there is one slight modification to the bb-prtdiag script.  Since
hobbitclient.cfg does not allow for execution, just variable setting, I had
to uncomment these two lines in bb-prtdiag:
PLATFORM_SPEC=`$UNAME -i`
PRTDIAG_COMMAND="/usr/platform/$PLATFORM_SPEC/sbin/prtdiag"


From: McGraw, Robert P. [mailto:user-33cf07af04dd@xymon.invalid] 
Sent: Tuesday, January 24, 2006 8:34 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Repeat entries in bb-hosts


Has anyone rewritten the solaris temperature.sh and bb-prtdiag for hobbit? I
would like to get these going on and just did not want to redo work that has
already been done.

Thanks

Robert


Robert P. McGraw, Jr.
Manager, Computer System                                         EMAIL:
user-33cf07af04dd@xymon.invalid
Purdue University                                                         
ROOM: MATH-807
Department of Mathematics                                        PHONE:
(XXX) XXX-XXXX
XXX N. University Street                                                 
FAX: (XXX) XXX-XXXX
West Lafayette, IN XXXXX-XXXX
list Richard Deal · Tue, 24 Jan 2006 10:35:31 -0500 ·
Yes the modification goes in the clientlaunch.cfg and no change is needed on the server side.  I have these added to my clientlaunch.cfg for most sun machines:

[meta]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/meta
        LOGFILE $HOBBITCLIENTHOME/logs/meta.log
        INTERVAL 5m

[ntp]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-ntp.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-ntp.log
        INTERVAL 5m

[ntpstat]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/ntpstat.sh
        LOGFILE $HOBBITCLIENTHOME/logs/ntpstat.log
        INTERVAL 5m

[prtdiag]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-prtdiag.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-prtdiag.log
        INTERVAL 5m

[cpu2]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-cpu2.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-cpu2.log
        INTERVAL 5m

[msgs]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-msgs.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-msgs.log
        INTERVAL 5m

[sge]
        DISABLED
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/sge.sh
        LOGFILE $HOBBITCLIENTHOME/logs/sge.log
        INTERVAL 5m

[vx]
        DISABLED
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-vxcheck.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-vxcheck.log
        INTERVAL 5m

SGE and VX check are enabled on the few hosts were it is needed.
Richard
quoted from Robert P. McGraw
-----Original Message-----
From: McGraw, Robert P. [mailto:user-33cf07af04dd@xymon.invalid]
Sent: Tuesday, January 24, 2006 10:30 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] bb-prtdiag and temperature.sh question.

Richard,

Thanks for your reply.

When I think I understand how hobbit works, I seem to get confused again.

I see the modifications you suggest in hobbitclient.cfg and bb-prtdiag. No
problem in making these.

I am confused where to set it to execute.

Let me see if I got how hobbit works on the client.

1) Hobbitlaunch reads the clientlaunch.cfg file.

2) Clientlaunch.cfg file reads hobbitclient.cfg file and executes
hobbitclient.sh

3) hobbitclient.sh calls hobbitclient-sunos.sh (in my case) which executes
the programs in hobbitclient-sunos.sh and writes the output to msg.txt.

4 hobbitclient.sh sends msg.txt to the $BBDISP.

Now I want to execute the bb-prtdiag and bb-prtdiag seems to send the data
to $BBDISP inside the script.

Do I put the execution of $BBDISP in clientlaunch.cfg?

What do I need to do on the server side for this to show up in the hobbit
html?

Thanks

Robert


From: Deal, Richard [mailto:user-f6f804cb0a50@xymon.invalid]
Sent: Tuesday, January 24, 2006 8:48 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Repeat entries in bb-hosts

I didn't have to modify bb-prtdiag at all to get it running under the
hobbit
client.
You will have to modify the etc/hobbitclient.cfg file to represent your
environment and the bb-prtdiag modifications should also be added.
I have these lines added to hobbitclient.cfg:
(might be some line modification by email but you get the idea)
#
#from prtdiag script
#
UNAME="/sbin/uname"
#PLATFORM_SPEC=`${UNAME} -i`
#PRTDIAG_COMMAND="/usr/platform/${PLATFORM_SPEC}/sbin/prtdiag"
PRTDIAG_OPT="-v"
ZONENAME=/usr/bin/zonename
#Systems that don't support temperature checks
EXCLUDE_SYSTEMS="Ultra-1 Ultra-2 Ultra-5_10 Ultra-30 Ultra-60 Ultra-80
UltraAX-i
2 UltraSPARC-IIi-cEngine Sun-Fire Netra-T4 UltraAX-e2
Ultra-Enterprise-10000"
PRTDIAG_IGNORE_ERRORS="No failures|Most recent AC Power Failure|Minimum
Availabl
e|CS Fail|No Hardware failures|^===|currently no Boards|Fault     Fan"
PRTDIAG_IGNORE_FAULTS="No Recent System Faults found|No System Faults
found|Faul
t Value|Fault LED|NO_FAULT|Power  Fault|Status
Fault|Fault
off"
LOM_COMMAND="/usr/sbin/lom"
LOM_OPT="-pfvt"

Woops there is one slight modification to the bb-prtdiag script.  Since
hobbitclient.cfg does not allow for execution, just variable setting, I
had
to uncomment these two lines in bb-prtdiag:
PLATFORM_SPEC=`$UNAME -i`
PRTDIAG_COMMAND="/usr/platform/$PLATFORM_SPEC/sbin/prtdiag"


From: McGraw, Robert P. [mailto:user-33cf07af04dd@xymon.invalid]
Sent: Tuesday, January 24, 2006 8:34 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Repeat entries in bb-hosts


Has anyone rewritten the solaris temperature.sh and bb-prtdiag for hobbit?
I
would like to get these going on and just did not want to redo work that
has
already been done.

Thanks

Robert


Robert P. McGraw, Jr.
Manager, Computer System                                         EMAIL:
user-33cf07af04dd@xymon.invalid
Purdue University
ROOM: MATH-807
Department of Mathematics                                        PHONE:
(XXX) XXX-XXXX
XXX N. University Street
FAX: (XXX) XXX-XXXX
West Lafayette, IN XXXXX-XXXX
list Robert P. McGraw · Tue, 24 Jan 2006 17:11:49 -0500 ·
Richard,

This worked like you advertised on my client. 

I went and put the changes in the client directory of the server and
restarted the server but I do not get the output. Are there any other files
that I need to change to get this to work on the server? 

Doing this has been a big help as I am finally seeing how things are set up
and interact.
quoted from Richard Deal

Thanks

Robert


Robert P. McGraw, Jr.
Manager, Computer System                 EMAIL: user-33cf07af04dd@xymon.invalid
Purdue University                         ROOM: MATH-807
Department of Mathematics                PHONE: (XXX) XXX-XXXX
XXX N. University Street                   FAX: (XXX) XXX-XXXX
West Lafayette, IN XXXXX-XXXX            

-----Original Message-----
From: Deal, Richard [mailto:user-f6f804cb0a50@xymon.invalid]
Sent: Tuesday, January 24, 2006 10:36 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] bb-prtdiag and temperature.sh question.

Yes the modification goes in the clientlaunch.cfg and no change is needed
on the server side.  I have these added to my clientlaunch.cfg for most
sun machines:

[meta]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/meta
        LOGFILE $HOBBITCLIENTHOME/logs/meta.log
        INTERVAL 5m

[ntp]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-ntp.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-ntp.log
        INTERVAL 5m

[ntpstat]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/ntpstat.sh
        LOGFILE $HOBBITCLIENTHOME/logs/ntpstat.log
        INTERVAL 5m

[prtdiag]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-prtdiag.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-prtdiag.log
        INTERVAL 5m

[cpu2]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-cpu2.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-cpu2.log
        INTERVAL 5m

[msgs]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-msgs.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-msgs.log
        INTERVAL 5m

[sge]
        DISABLED
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/sge.sh
        LOGFILE $HOBBITCLIENTHOME/logs/sge.log
        INTERVAL 5m

[vx]
        DISABLED
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-vxcheck.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-vxcheck.log
        INTERVAL 5m

SGE and VX check are enabled on the few hosts were it is needed.
Richard
-----Original Message-----
From: McGraw, Robert P. [mailto:user-33cf07af04dd@xymon.invalid]
Sent: Tuesday, January 24, 2006 10:30 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] bb-prtdiag and temperature.sh question.

Richard,

Thanks for your reply.

When I think I understand how hobbit works, I seem to get confused
again.

I see the modifications you suggest in hobbitclient.cfg and bb-prtdiag.
No
problem in making these.

I am confused where to set it to execute.

Let me see if I got how hobbit works on the client.

1) Hobbitlaunch reads the clientlaunch.cfg file.

2) Clientlaunch.cfg file reads hobbitclient.cfg file and executes
hobbitclient.sh

3) hobbitclient.sh calls hobbitclient-sunos.sh (in my case) which
executes
the programs in hobbitclient-sunos.sh and writes the output to msg.txt.

4 hobbitclient.sh sends msg.txt to the $BBDISP.

Now I want to execute the bb-prtdiag and bb-prtdiag seems to send the
data
to $BBDISP inside the script.

Do I put the execution of $BBDISP in clientlaunch.cfg?

What do I need to do on the server side for this to show up in the
hobbit
html?

Thanks

Robert


From: Deal, Richard [mailto:user-f6f804cb0a50@xymon.invalid]
Sent: Tuesday, January 24, 2006 8:48 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Repeat entries in bb-hosts

I didn't have to modify bb-prtdiag at all to get it running under the
hobbit
client.
You will have to modify the etc/hobbitclient.cfg file to represent your
environment and the bb-prtdiag modifications should also be added.
I have these lines added to hobbitclient.cfg:
(might be some line modification by email but you get the idea)
#
#from prtdiag script
#
UNAME="/sbin/uname"
#PLATFORM_SPEC=`${UNAME} -i`
#PRTDIAG_COMMAND="/usr/platform/${PLATFORM_SPEC}/sbin/prtdiag"
PRTDIAG_OPT="-v"
ZONENAME=/usr/bin/zonename
#Systems that don't support temperature checks
EXCLUDE_SYSTEMS="Ultra-1 Ultra-2 Ultra-5_10 Ultra-30 Ultra-60 Ultra-80
UltraAX-i
2 UltraSPARC-IIi-cEngine Sun-Fire Netra-T4 UltraAX-e2
Ultra-Enterprise-10000"
PRTDIAG_IGNORE_ERRORS="No failures|Most recent AC Power Failure|Minimum
Availabl
e|CS Fail|No Hardware failures|^===|currently no Boards|Fault     Fan"
PRTDIAG_IGNORE_FAULTS="No Recent System Faults found|No System Faults
found|Faul
t Value|Fault LED|NO_FAULT|Power  Fault|Status
Fault|Fault
off"
LOM_COMMAND="/usr/sbin/lom"
LOM_OPT="-pfvt"

Woops there is one slight modification to the bb-prtdiag script.  Since
hobbitclient.cfg does not allow for execution, just variable setting, I
had
to uncomment these two lines in bb-prtdiag:
PLATFORM_SPEC=`$UNAME -i`
PRTDIAG_COMMAND="/usr/platform/$PLATFORM_SPEC/sbin/prtdiag"


From: McGraw, Robert P. [mailto:user-33cf07af04dd@xymon.invalid]
Sent: Tuesday, January 24, 2006 8:34 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Repeat entries in bb-hosts


Has anyone rewritten the solaris temperature.sh and bb-prtdiag for
hobbit?
I
would like to get these going on and just did not want to redo work that
has
already been done.

Thanks

Robert


Robert P. McGraw, Jr.
Manager, Computer System                                         EMAIL:
user-33cf07af04dd@xymon.invalid
Purdue University
ROOM: MATH-807
Department of Mathematics                                        PHONE:
(XXX) XXX-XXXX
XXX N. University Street
FAX: (XXX) XXX-XXXX
West Lafayette, IN XXXXX-XXXX
list Robert P. McGraw · Tue, 24 Jan 2006 17:20:07 -0500 ·
Richard,

I ran the runclient.sh in the client directory of the server. When I did this things worked.

I thought that starting and stopping the server also took care of the client. Is this not the case.

Thanks again
quoted from Robert P. McGraw


Richard,

This worked like you advertised on my client. 

I went and put the changes in the client directory of the server and
restarted the server but I do not get the output. Are there any other files
that I need to change to get this to work on the server? 

Doing this has been a big help as I am finally seeing how things are set up
and interact.

Thanks

Robert


Robert P. McGraw, Jr.
Manager, Computer System                 EMAIL: user-33cf07af04dd@xymon.invalid
Purdue University                         ROOM: MATH-807
Department of Mathematics                PHONE: (XXX) XXX-XXXX
XXX N. University Street                   FAX: (XXX) XXX-XXXX
West Lafayette, IN XXXXX-XXXX            

-----Original Message-----
From: Deal, Richard [mailto:user-f6f804cb0a50@xymon.invalid]
Sent: Tuesday, January 24, 2006 10:36 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] bb-prtdiag and temperature.sh question.

Yes the modification goes in the clientlaunch.cfg and no change is needed
on the server side.  I have these added to my clientlaunch.cfg for most
sun machines:

[meta]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/meta
        LOGFILE $HOBBITCLIENTHOME/logs/meta.log
        INTERVAL 5m

[ntp]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-ntp.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-ntp.log
        INTERVAL 5m

[ntpstat]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/ntpstat.sh
        LOGFILE $HOBBITCLIENTHOME/logs/ntpstat.log
        INTERVAL 5m

[prtdiag]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-prtdiag.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-prtdiag.log
        INTERVAL 5m

[cpu2]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-cpu2.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-cpu2.log
        INTERVAL 5m

[msgs]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-msgs.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-msgs.log
        INTERVAL 5m

[sge]
        DISABLED
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/sge.sh
        LOGFILE $HOBBITCLIENTHOME/logs/sge.log
        INTERVAL 5m

[vx]
        DISABLED
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-vxcheck.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-vxcheck.log
        INTERVAL 5m

SGE and VX check are enabled on the few hosts were it is needed.
Richard
-----Original Message-----
From: McGraw, Robert P. [mailto:user-33cf07af04dd@xymon.invalid]
Sent: Tuesday, January 24, 2006 10:30 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] bb-prtdiag and temperature.sh question.

Richard,

Thanks for your reply.

When I think I understand how hobbit works, I seem to get confused
again.

I see the modifications you suggest in hobbitclient.cfg and bb-prtdiag.
No
problem in making these.

I am confused where to set it to execute.

Let me see if I got how hobbit works on the client.

1) Hobbitlaunch reads the clientlaunch.cfg file.

2) Clientlaunch.cfg file reads hobbitclient.cfg file and executes
hobbitclient.sh

3) hobbitclient.sh calls hobbitclient-sunos.sh (in my case) which
executes
the programs in hobbitclient-sunos.sh and writes the output to msg.txt.

4 hobbitclient.sh sends msg.txt to the $BBDISP.

Now I want to execute the bb-prtdiag and bb-prtdiag seems to send the
data
to $BBDISP inside the script.

Do I put the execution of $BBDISP in clientlaunch.cfg?

What do I need to do on the server side for this to show up in the
hobbit
html?

Thanks

Robert


From: Deal, Richard [mailto:user-f6f804cb0a50@xymon.invalid]
Sent: Tuesday, January 24, 2006 8:48 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Repeat entries in bb-hosts

I didn't have to modify bb-prtdiag at all to get it running under the
hobbit
client.
You will have to modify the etc/hobbitclient.cfg file to represent your
environment and the bb-prtdiag modifications should also be added.
I have these lines added to hobbitclient.cfg:
(might be some line modification by email but you get the idea)
#
#from prtdiag script
#
UNAME="/sbin/uname"
#PLATFORM_SPEC=`${UNAME} -i`
#PRTDIAG_COMMAND="/usr/platform/${PLATFORM_SPEC}/sbin/prtdiag"
PRTDIAG_OPT="-v"
ZONENAME=/usr/bin/zonename
#Systems that don't support temperature checks
EXCLUDE_SYSTEMS="Ultra-1 Ultra-2 Ultra-5_10 Ultra-30 Ultra-60 Ultra-80
UltraAX-i
2 UltraSPARC-IIi-cEngine Sun-Fire Netra-T4 UltraAX-e2
Ultra-Enterprise-10000"
PRTDIAG_IGNORE_ERRORS="No failures|Most recent AC Power Failure|Minimum
Availabl
e|CS Fail|No Hardware failures|^===|currently no Boards|Fault     Fan"
PRTDIAG_IGNORE_FAULTS="No Recent System Faults found|No System Faults
found|Faul
t Value|Fault LED|NO_FAULT|Power  Fault|Status
Fault|Fault
off"
LOM_COMMAND="/usr/sbin/lom"
LOM_OPT="-pfvt"

Woops there is one slight modification to the bb-prtdiag script.  Since
hobbitclient.cfg does not allow for execution, just variable setting, I
had
to uncomment these two lines in bb-prtdiag:
PLATFORM_SPEC=`$UNAME -i`
PRTDIAG_COMMAND="/usr/platform/$PLATFORM_SPEC/sbin/prtdiag"


From: McGraw, Robert P. [mailto:user-33cf07af04dd@xymon.invalid]
Sent: Tuesday, January 24, 2006 8:34 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Repeat entries in bb-hosts


Has anyone rewritten the solaris temperature.sh and bb-prtdiag for
hobbit?
I
would like to get these going on and just did not want to redo work that
has
already been done.

Thanks

Robert


Robert P. McGraw, Jr.
Manager, Computer System                                         EMAIL:
user-33cf07af04dd@xymon.invalid
Purdue University
ROOM: MATH-807
Department of Mathematics                                        PHONE:
(XXX) XXX-XXXX
XXX N. University Street
FAX: (XXX) XXX-XXXX
West Lafayette, IN XXXXX-XXXX
 
list Robert P. McGraw · Tue, 24 Jan 2006 17:25:22 -0500 ·
Richard,

Never mind, I thing I have found the problem. This is working ok on the server one I resolved a "stupid" problem.

Again thanks for all you help.

Robert
quoted from Robert P. McGraw


Richard,

I ran the runclient.sh in the client directory of the server. When I did this things worked.

I thought that starting and stopping the server also took care of the client. Is this not the case.

Thanks again


Richard,

This worked like you advertised on my client. 

I went and put the changes in the client directory of the server and
restarted the server but I do not get the output. Are there any other files
that I need to change to get this to work on the server? 

Doing this has been a big help as I am finally seeing how things are set up
and interact.

Thanks

Robert


Robert P. McGraw, Jr.
Manager, Computer System                 EMAIL: user-33cf07af04dd@xymon.invalid
Purdue University                         ROOM: MATH-807
Department of Mathematics                PHONE: (XXX) XXX-XXXX
XXX N. University Street                   FAX: (XXX) XXX-XXXX
West Lafayette, IN XXXXX-XXXX            

-----Original Message-----
From: Deal, Richard [mailto:user-f6f804cb0a50@xymon.invalid]
Sent: Tuesday, January 24, 2006 10:36 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] bb-prtdiag and temperature.sh question.

Yes the modification goes in the clientlaunch.cfg and no change is needed
on the server side.  I have these added to my clientlaunch.cfg for most
sun machines:

[meta]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/meta
        LOGFILE $HOBBITCLIENTHOME/logs/meta.log
        INTERVAL 5m

[ntp]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-ntp.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-ntp.log
        INTERVAL 5m

[ntpstat]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/ntpstat.sh
        LOGFILE $HOBBITCLIENTHOME/logs/ntpstat.log
        INTERVAL 5m

[prtdiag]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-prtdiag.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-prtdiag.log
        INTERVAL 5m

[cpu2]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-cpu2.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-cpu2.log
        INTERVAL 5m

[msgs]
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-msgs.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-msgs.log
        INTERVAL 5m

[sge]
        DISABLED
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/sge.sh
        LOGFILE $HOBBITCLIENTHOME/logs/sge.log
        INTERVAL 5m

[vx]
        DISABLED
        ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
        CMD $HOBBITCLIENTHOME/ext/bb-vxcheck.sh
        LOGFILE $HOBBITCLIENTHOME/logs/bb-vxcheck.log
        INTERVAL 5m

SGE and VX check are enabled on the few hosts were it is needed.
Richard
-----Original Message-----
From: McGraw, Robert P. [mailto:user-33cf07af04dd@xymon.invalid]
Sent: Tuesday, January 24, 2006 10:30 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] bb-prtdiag and temperature.sh question.

Richard,

Thanks for your reply.

When I think I understand how hobbit works, I seem to get confused
again.

I see the modifications you suggest in hobbitclient.cfg and bb-prtdiag.
No
problem in making these.

I am confused where to set it to execute.

Let me see if I got how hobbit works on the client.

1) Hobbitlaunch reads the clientlaunch.cfg file.

2) Clientlaunch.cfg file reads hobbitclient.cfg file and executes
hobbitclient.sh

3) hobbitclient.sh calls hobbitclient-sunos.sh (in my case) which
executes
the programs in hobbitclient-sunos.sh and writes the output to msg.txt.

4 hobbitclient.sh sends msg.txt to the $BBDISP.

Now I want to execute the bb-prtdiag and bb-prtdiag seems to send the
data
to $BBDISP inside the script.

Do I put the execution of $BBDISP in clientlaunch.cfg?

What do I need to do on the server side for this to show up in the
hobbit
html?

Thanks

Robert


From: Deal, Richard [mailto:user-f6f804cb0a50@xymon.invalid]
Sent: Tuesday, January 24, 2006 8:48 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Repeat entries in bb-hosts

I didn't have to modify bb-prtdiag at all to get it running under the
hobbit
client.
You will have to modify the etc/hobbitclient.cfg file to represent your
environment and the bb-prtdiag modifications should also be added.
I have these lines added to hobbitclient.cfg:
(might be some line modification by email but you get the idea)
#
#from prtdiag script
#
UNAME="/sbin/uname"
#PLATFORM_SPEC=`${UNAME} -i`
#PRTDIAG_COMMAND="/usr/platform/${PLATFORM_SPEC}/sbin/prtdiag"
PRTDIAG_OPT="-v"
ZONENAME=/usr/bin/zonename
#Systems that don't support temperature checks
EXCLUDE_SYSTEMS="Ultra-1 Ultra-2 Ultra-5_10 Ultra-30 Ultra-60 Ultra-80
UltraAX-i
2 UltraSPARC-IIi-cEngine Sun-Fire Netra-T4 UltraAX-e2
Ultra-Enterprise-10000"
PRTDIAG_IGNORE_ERRORS="No failures|Most recent AC Power Failure|Minimum
Availabl
e|CS Fail|No Hardware failures|^===|currently no Boards|Fault     Fan"
PRTDIAG_IGNORE_FAULTS="No Recent System Faults found|No System Faults
found|Faul
t Value|Fault LED|NO_FAULT|Power  Fault|Status
Fault|Fault
off"
LOM_COMMAND="/usr/sbin/lom"
LOM_OPT="-pfvt"

Woops there is one slight modification to the bb-prtdiag script.  Since
hobbitclient.cfg does not allow for execution, just variable setting, I
had
to uncomment these two lines in bb-prtdiag:
PLATFORM_SPEC=`$UNAME -i`
PRTDIAG_COMMAND="/usr/platform/$PLATFORM_SPEC/sbin/prtdiag"


From: McGraw, Robert P. [mailto:user-33cf07af04dd@xymon.invalid]
Sent: Tuesday, January 24, 2006 8:34 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Repeat entries in bb-hosts


Has anyone rewritten the solaris temperature.sh and bb-prtdiag for
hobbit?
I
would like to get these going on and just did not want to redo work that
has
already been done.

Thanks

Robert


Robert P. McGraw, Jr.
Manager, Computer System                                         EMAIL:
user-33cf07af04dd@xymon.invalid
Purdue University
ROOM: MATH-807
Department of Mathematics                                        PHONE:
(XXX) XXX-XXXX
XXX N. University Street
FAX: (XXX) XXX-XXXX
West Lafayette, IN XXXXX-XXXX