[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [hobbit] hobbit-clients.cfg



 Here is an attached copy of the hobbit client init script. This came with
the hobbit depot I installed the client from.

Robert Manocchia
UNIX System Administrator
IDEXX Laboratories
207 556-6860
EMail Robert-Manocchia (at) idexx.com

-----Original Message-----
From: Sello Tlabela (SD) [mailto:TlabelSD (at) telkom.co.za] 
Sent: Monday, June 04, 2007 1:09 AM
To: hobbit (at) hswn.dk
Subject: RE: [hobbit] hobbit-clients.cfg


Hi,

How did you start hobbit-client, did you user init script also make
sure that you comment out hostname  and os name in
/etc/default/hobbit-client then restart using init script

-----Original Message-----
From: Manocchia, Robert [mailto:Robert-Manocchia (at) IDEXX.com] 
Sent: 01 June 2007 16:22
To: 'hobbit (at) hswn.dk'
Subject: RE: [hobbit] hobbit-clients.cfg

I confirmed that there were no hosts listed in the Ghost clients
report. I
also checked twice that the client was running and I was able to
telnet to
<Hobbitserver> 1984.

  Is there anything else I can check.

Robert Manocchia
UNIX System Administrator
IDEXX Laboratories
207 556-6860
EMail Robert-Manocchia (at) idexx.com

-----Original Message-----
From: henrik (at) hswn.dk [mailto:henrik (at) hswn.dk] 
Sent: Friday, June 01, 2007 1:40 AM
To: hobbit (at) hswn.dk
Subject: Re: [hobbit] hobbit-clients.cfg

On Thu, May 31, 2007 at 10:15:16PM -0400, Manocchia, Robert wrote:
> I have the hobbit client running on HPUX 11.11 and I can see three
tests
> (conn, info, and trends). I have added the following to the
> hobbit-clients.cfg file on the server.
> 
> HOST=dione.namerica.idexxi.com
>         UP      1h
>         LOAD    2.8 4.0
>         DISK    * 85 95
> 
> Which appears before the defaults keyword.
> 
> I restarted both the server and the client but still do not see the
UP
LOAD
> and DISK columns.

Sounds like you haven't got the Hobbit client running on that server, 
or at least - it isn't reporting into Hobbit with the right hostname.

Check the "Reports->Ghost clients" report and see if your host is
listed
there - it will be, if the client uses a different hostname than what
you have in bb-hosts. In that case, put a CLIENT:clientname entry in
bb-hosts so Hobbit knows how to connect the two names.

If it's not in the Ghost client list, then you must check if the
client
is running at all, and if it can connect to the Hobbit server to send
data (from the client, run "telnet HOBBITHOST 1984" and see if it will
connect).

BTW, there won't be an UP or LOAD column - these data are presented as
part of the "cpu" status.

And there's no need to restart anything when changing this
configuration.


Regards,
Henrik


To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk


To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at 
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk


#!/bin/sh
#----------------------------------------------------------------------------#
# Hobbit client bootup script.                                               #
#                                                                            #
# This invokes hobbitlaunch, which in turn runs the Hobbit client and any    #
# extensions configured.                                                     #
#                                                                            #
# Copyright (C) 2005 Henrik Storner <henrik (at) hswn.dk>                         #
#                                                                            #
# This program is released under the GNU General Public License (GPL),       #
# version 2. See the file "COPYING" for details.                             #
#                                                                            #
#----------------------------------------------------------------------------#
#
# $Id: runclient.sh,v 1.6 2005/09/28 21:21:17 henrik Exp $

# Default settings for this client
MACHINEDOTS="`uname -n`"                        # This systems hostname
BBOSTYPE="`uname -s | tr '[A-Z]' '[a-z]'`"      # This systems operating system in lowercase
BBOSSCRIPT="hobbitclient-$BBOSTYPE.sh"

# Commandline mods for the defaults
while test "$1" != ""
do
        case "$1" in
          --hostname=*)
                MACHINEDOTS="`echo $1 | sed -e's/--hostname=//'`"
                ;;
          --os=*)
                BBOSTYPE="`echo $1 | sed -e's/--os=//' | tr '[A-Z]' '[a-z]'`"
                ;;
          --help)
                echo "Usage: $0 [--hostname=CLIENTNAME] [--os=rhel3|linux22] start|stop"
                exit 0
                ;;
          start)
                CMD=$1
                ;;
          stop)
                CMD=$1
                ;;
          restart)
                CMD=$1
                ;;
        esac

        shift
done

HOBBITCLIENTHOME="`dirname $0`"

MACHINE="`echo $MACHINEDOTS | sed -e's/\./,/g'`"

export MACHINE MACHINEDOTS BBOSTYPE BBOSSCRIPT HOBBITCLIENTHOME

case "$CMD" in
  "start")
        if test ! -w $HOBBITCLIENTHOME/logs; then
                echo "Cannot write to the $HOBBITCLIENTHOME/logs directory"
                exit 1
        fi
        if test ! -w $HOBBITCLIENTHOME/tmp; then
                echo "Cannot write to the $HOBBITCLIENTHOME/tmp directory"
                exit 1
        fi

        if test -f $HOBBITCLIENTHOME/logs/clientlaunch.pid; then
                echo "Hobbit client already running, re-starting it"
                $0 stop
                rm -f $HOBBITCLIENTHOME/logs/clientlaunch.pid
        fi

        $HOBBITCLIENTHOME/bin/hobbitlaunch --config=$HOBBITCLIENTHOME/etc/clientlaunch.cfg --log=$HOBBITCLIENTHOME/logs
/clientlaunch.log --pidfile=$HOBBITCLIENTHOME/logs/clientlaunch.pid
        if test $? -eq 0; then
                echo "Hobbit client for $BBOSTYPE started on $MACHINEDOTS"
        else
                echo "Hobbit client startup failed"
        fi
        ;;

  "stop")
        if test -f $HOBBITCLIENTHOME/logs/clientlaunch.pid; then
                kill `cat $HOBBITCLIENTHOME/logs/clientlaunch.pid`
                echo "Hobbit client stopped"
        else
                echo "Hobbit client not running"
        fi
        ;;

  "restart")
        if test -f $HOBBITCLIENTHOME/logs/clientlaunch.pid; then
                $0 stop
        else
                echo "Hobbit client not running, continuing to start it"
        fi

        $0 start
        ;;
esac

exit 0