Xymon Mailing List Archive search

temperature.sh I am almost their. PROBLEM connect to bbd failed.

1 message in this thread

list Robert P. McGraw · Thu, 26 Jan 2006 14:46:04 -0500 ·
I have installed temperature.sh in ext and made a few fixes.

1) temperature.sh seems to need nawk and not awk so I had to set the in the
.sh file.

2) It has to pass the name temperature and not temp. This took me a little
time to figure out.

On the client I entered the following in the clientlaunch.cfg file

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

This seems to be work just fine. I get the temperatue column and trends.

Now on the server I modified the server hobbitlaunch.cfg with the following 


##
# run dead-cat temperature.sh
#

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

In my client directory temperature.logs I  get the following when I start
hobbit.

*****Sun-Fire-280R***********
2006-01-26 14:29:43 connect to bbd failed - Connection refused
2006-01-26 14:29:43 Whoops ! bb failed to send message - Connection failed
*****Sun-Fire-280R***********
*****Sun-Fire-280R***********

Maybe this happens at the beginning of the start when temperature.sh cannot
contact bbd because it is not up yet.


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