You could use something like this for the startup file.. This is what we use here..
#!/bin/bash
#set -x
HOSTNAME=hostname
DOMAINNAME=xxx.yyy.com
if [ echo ${HOSTNAME} | grep -ic "${DOMAINNAME}" -eq 0 ]
then
FQNAME=${HOSTNAME}"."${DOMAINNAME}
else
FQNAME=${HOSTNAME}
fi
FQNAME=echo $FQNAME | tr '[A-Z]' '[a-z]'
case $1 in 'start') su - hobbit -c "/usr/local/hobbit/client/runclient.sh --hostname=${FQNAME} start" ;; 'stop') su - hobbit -c "/usr/local/hobbit/client/runclient.sh --hostname=${FQNAME} stop" ;; 'restart') su - hobbit -c "/usr/local/hobbit/client/runclient.sh --hostname=${FQNAME} restart" ;; *) echo "usage: $0 {start|stop|restart}" ;; esac
Hope this helps
regards
Padraig Lennon Senior Systems Engineer Production Services Pioneer Global Investments (Dublin) 5th Floor Georges Quay Plaza, Dublin 2 ext: 2081 Direct dial: 00353 1 480 2081
From: Kevin Hanrahan [mailto:kevinmhanrahan at hotmail.com] Sent: 31 December 2007 05:38 To: hobbit at hswn.dk Subject: RE: [hobbit] Hobbit client doesn't report
Gentlemen, Thanks VERY much for your input. I found the problem. It was a naming convention. The example I sent did not have the original entry in the bb-hosts file. When I originally installed hobbit, I selected FQDN, so all my hosts had the FQDN. It looked like this:
10.10.0.6 castor.galaxy.prv # trace
however, I do not see an option in the client package to make the host report as a FQDN.
I changed the entry in the bb-hosts to use the short name while I was typing the entry to this forum. I looked later and found that it was now collecting data.
Is this a bug or just an oversight on my part?
Ideas?....and thanks for all your help.
Kevin
Date: Sun, 30 Dec 2007 22:10:02 -0500 From: hobbit at epperson.homelinux.net To: hobbit at hswn.dk Subject: Re: [hobbit] Hobbit client doesn't report
On Sun, December 30, 2007 21:43, Kevin Hanrahan wrote:
Hello again all, To re-visit my question about the hobbit client, I
have
done the following:
downloaded and compiled the hobbit client on a SEPERATE machine from the hobbit server server = hercules client = castor - put an entry in bb-hosts on the server (hercules) for the client (castor) that looks like this: 10.10.0.6 castor # trace
configured hobbitclient.cfg on the client to look like this: BBDISP="10.10.0.13" # IP address of the Hobbit server
started the hobbit client on the client machine (castor)
I get NO client data. All I get is the tests that are originated from the server (conn,info,trends)
Any ideas?
Anything in Reports-->Ghost Systems? If the client's notion of the name to report under doesn't match bb-hosts exactly, you may find it there. If so, fix bb-hosts and bb 127.0.0.1 "rename <old-bb-hosts-hostname> <client-hostname>"
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk