[hobbit] Log messages

shea_greg at emc.com shea_greg at emc.com
Wed Aug 15 00:11:37 CEST 2007


> The number is just the exit code from the script. Normally you'd have
an
> "exit 0" at the end of the script when everything is OK.
> 
> These are custom client-side scripts you're running, so what the
> different status numbers mean I cannot tell.
> 
> Debugging - you can run the scripts by hand, and then get the exit
code 
> from the "$?" environment right after the script finishes.
> 
> 
> Regards,
> Henrik


Hi Henrik,

Nice to hear from you.  I hope you're not still on vacation and
answering this email.
If you are, my apologies, this can wait, but I'm going to send the
responses.

The exit status seems to be coming from Hobbit, line 528 in
common/hobbitlaunch.c
The emcpp is a custom script that checks EMC's PowerPath software on a
given host.
The temp is the temperature.sh (V4.0) script from deadcat.
The emcpp script returns 0, temp script returns 1.  The log data is from
clientlaunch.log.
My standard client package includes these tests, as most of the machines
here do run
PowerPath and DellOM.  The interesting thing about temp is my BBOSTYPE
variable has an
extra carriage return in it.
[hobbit at hershey ext]$ echo "$BBOSTYPE"
linux

[hobbit at hershey ext]$ echo "\"$BBOSTYPE\""
"linux
"

[hobbit at hershey ext]$ ../bin/bbcmd bash
2007-08-14 17:59:54 Using default environment file
/apps/hobbit/client/etc/hobbitclient.cfg
[hobbit at hershey ext]$ env
SED=/bin/sed
GREP=/bin/grep
BBDISP=0.0.0.0
WCC=/usr/bin/wc
BBDISPLAYS=128.221.22.29
HOSTNAME=hershey
UPTIME=/usr/bin/uptime
TAIL=/usr/bin/tail
SHELL=/bin/bash
TERM=xterm
AWK=/bin/awk
HISTSIZE=1000
WHO=/usr/bin/who
BBCLIENTLOGS=/apps/hobbit/client/logs
SSH_CLIENT=128.221.22.29 48509 22
DF=/bin/df -Pk
BBOSTYPE=linux

HOBBITCLIENTHOME=/apps/hobbit/client
SSH_TTY=/dev/pts/0
CUT=/bin/cut
USER=hobbit
LS_COLORS=
LD_LIBRARY_PATH=:/usr/local/freetds/lib
SORT=/bin/sort
HEAD=/usr/bin/head
SYBASE=/usr/local/freetds
TOP=/usr/bin/top
RM=/bin/rm
DATE=/bin/date
EXPR=/usr/bin/expr
BBPORT=1984
PATH=/usr/kerberos/bin:/bin:/usr/bin:/sbin:/usr/sbin:/etc
MAIL=/var/spool/mail/hobbit
MV=/bin/mv
EGREP=/bin/egrep
PWD=/apps/hobbit/client/ext
INPUTRC=/etc/inputrc
PS=ps ax
BB=/apps/hobbit/client/bin/bb
LANG=en_US.UTF-8
MACHINE=hershey
CP=/bin/cp
LN=/bin/ln
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
MAXLINE=32768
HOME=/apps/hobbit
SHLVL=2
TR=/usr/bin/tr
ID=/usr/bin/id
BBTMP=/apps/hobbit/client/tmp
MACHINEDOTS=hershey
LOGNAME=hobbit
SSH_CONNECTION=128.221.22.29 48509 10.250.132.12 22
WC=/usr/bin/wc -l
LS=/bin/ls
LESSOPEN=|/usr/bin/lesspipe.sh %s
FIND=/usr/bin/find
BBHOME=/apps/hobbit/client
DFCMD=/bin/df -Pk
CONFIGCLASS=linux

CAT=/bin/cat
TOUCH=/bin/touch
G_BROKEN_FILENAMES=1
UNIQ=/usr/bin/uniq
_=/bin/env
[hobbit at hershey ext]$


Thanks for your assistance
-Grs-
Gregory R Shea
EMC Corporation





More information about the Xymon mailing list