Xymon Mailing List Archive search

hobbitclient.sh on Solaris 10

4 messages in this thread

list Richard Wachter · Mon, 21 May 2007 09:10:52 -0500 ·
Hello all,
This is my first Hobbit client install and while it looks like all the
pieces are were they should be I keep getting this error message

/users/hobbit/bin/hobbitclient.sh:
/users/hobbit/bin/hobbitclient-TvoPT.sh: not found

I have tracked it down to the "uname -s" in the "hobbitclient.sh"
script.  While this seems to run fine as root, and as the hobbit use
if I su to hobbit.  It however doesn't like being started this way "
su - hobbit -c "/users/hobbit/runclient.sh start"

Here is the out put from the script with debugging turned on.

# $Id: hobbitclient.sh,v 1.17 2006/07/06 09:07:53 henrik Rel $

# Must make sure the commands return standard (english) texts.
LANG=C
LANG=C
LC_ALL=C
LC_ALL=C
LC_MESSAGES=C
LC_MESSAGES=C
export LANG LC_ALL LC_MESSAGES
+ export LANG LC_ALL LC_MESSAGES

LOCALMODE="no"
LOCALMODE=no
if test $# -ge 1; then
        if test "$1" = "--local"; then
                LOCALMODE="yes"
        fi
        shift
fi
+ test 0 -ge 1

if test "$BBOSSCRIPT" = ""; then
        BBOSSCRIPT="hobbitclient-`uname -s | tr '[A-Z]' '[a-z]'`.sh"
fi
+ test hobbitclient-TvoPT.sh =

MSGFILE="$BBTMP/msg.$MACHINEDOTS.txt"


Any help or ideas appreciated.
-- 
===================================
Richard Wachter
General Unix Geek
hobbit <at> richwachter.com
<><   Precariously perched on the precipice of another day . . .
list Stef Coene · Mon, 21 May 2007 21:23:44 +0200 ·
quoted from Richard Wachter
On Monday 21 May 2007, Richard Wachter wrote:
Hello all,
This is my first Hobbit client install and while it looks like all the
pieces are were they should be I keep getting this error message
What's the output of uname -s ?


Stef
list Richard Wachter · Tue, 22 May 2007 07:54:59 -0500 ·
Question : What is the output of " uname -s "
Answer : SunOS


I was able to resolve the issue by changing all of the " tr '[A-Z]'
'[a-z]' " entries to " tr [:upper:] [:lower:] "
quoted from Stef Coene


On 5/21/07, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:
On Monday 21 May 2007, Richard Wachter wrote:
Hello all,
This is my first Hobbit client install and while it looks like all the
pieces are were they should be I keep getting this error message
What's the output of uname -s ?


Stef

-- 
===================================

Richard Wachter
General Unix Geek
user-2fe3c77158da@xymon.invalid
<><   Precariously perched on the precipice of another day . . .
list Rolf Schrittenlocher · Thu, 24 May 2007 11:38:28 +0200 ·
Hi,
just one remark: Be careful with that on Solaris 9. After the latest 
Solaris patches we just had to do the other way by replacing " tr 
[:upper:] [:lower:] " by " tr '[A-Z]' '[a-z]' "

Rolf
quoted from Richard Wachter
Question : What is the output of " uname -s "
Answer : SunOS


I was able to resolve the issue by changing all of the " tr '[A-Z]'
'[a-z]' " entries to " tr [:upper:] [:lower:] "


On 5/21/07, Stef Coene <user-dbffe946c0f4@xymon.invalid> wrote:
On Monday 21 May 2007, Richard Wachter wrote:
Hello all,
This is my first Hobbit client install and while it looks like all the
pieces are were they should be I keep getting this error message
What's the output of uname -s ?


Stef

-- 

Mit freundlichen Gruessen
Rolf Schrittenlocher

HRZ/BDV, Senckenberganlage 31, 60054 Frankfurt
Tel: (XX) XX - XXX XXXXX   Fax: (XX) XX XXX XXXXX
LBS: user-1e39a1813094@xymon.invalid
Persoenlich: user-6ea8e907e200@xymon.invalid