Xymon Mailing List Archive search

bbproxy and "hobbitdboard"

5 messages in this thread

list Frédéric Mangeant · Wed, 13 Jun 2007 16:50:01 +0200 ·
Hi Henrik

on one of my servers, I'm running Hobbit 4.1.2p1 configured like this :  bbproxy listens on TCP 1984 and forwards to hobbitd, which listens on TCP 1985 on the same server.
I'm doing this because without the bbproxy running, I got from times to times "purple" statuses telling me "CAN'T CONNECT TO bbd SERVER @ xx.xx.xx.xx".

Everything works fine but the "hobbitdboad" command, which does not reply anything.

Is it possible to use this command through a bbproxy, or has it been corrected in Hobbit 4.2.0 ?

Many thanks in advance for your answer.

-- 

Frédéric Mangeant

Steria EDC Sophia Antipolis
list Larry Barber · Wed, 13 Jun 2007 10:44:48 -0500 ·
I have a setup like yours. When you specify your server for the bb command,
specify the port as well, like this:

$BBHOME/bin/bb hobbit_server:1985 "hobbitdboard ..."

Thanks,
Larry Barber
quoted from Frédéric Mangeant

On 6/13/07, Frédéric Mangeant <user-b6ea1d850181@xymon.invalid> wrote:
Hi Henrik

on one of my servers, I'm running Hobbit 4.1.2p1 configured like this :
bbproxy listens on TCP 1984 and forwards to hobbitd, which listens on
TCP 1985 on the same server.
I'm doing this because without the bbproxy running, I got from times to
times "purple" statuses telling me "CAN'T CONNECT TO bbd SERVER @
xx.xx.xx.xx".

Everything works fine but the "hobbitdboad" command, which does not
reply anything.

Is it possible to use this command through a bbproxy, or has it been
corrected in Hobbit 4.2.0 ?

Many thanks in advance for your answer.

--

Frédéric Mangeant

Steria EDC Sophia Antipolis

list Frédéric Mangeant · Thu, 14 Jun 2007 16:49:45 +0200 ·
quoted from Larry Barber
Larry Barber a écrit :
I have a setup like yours. When you specify your server for the bb 
command, specify the port as well, like this:

$BBHOME/bin/bb hobbit_server:1985 "hobbitdboard ..."

Thanks for your answer. I've already tried that (and it works), but 
firewalls do not let me access the TCP 1985 port from outside.

I gess I'll have to ask the network team...

-- 

Frédéric Mangeant

Steria EDC Sophia Antipolis
list Matthew Epp · Thu, 14 Jun 2007 15:04:40 -0400 ·
I've written a slight mod for the filesystem check for the hobbitclient-sunos.sh client file. I didn't want to have an external script doing the NFS check, nor do I want the client hanging if the filesystem becomes unavailable. The difficulty is always those timeouts. The only command I've found (without installing something else) is the showmount command. It times out after 15 seconds, so that shouldn't tie up the Hobbit client for too long.

Can someome with a test server, they can control the shares on, run some tests with this code and make sure it works ok in case of a real failure? Note: the <tab> indicators are to be replaced by real tab characters since \t doesn't work with egrep for some reason.

echo "[df]"
FSTYPES=`/bin/df -n -l|awk '{print $3}'|egrep -v "^proc|^fd|^mntfs|^ctfs|^devfs|^objfs|^nfs"|sort|uniq`
if test "$FSTYPES" = ""; then FSTYPES="ufs"; fi
set $FSTYPES
/bin/df -F $1 -k | grep -v " /var/run"
shift
while test "$1" != ""; do
   /bin/df -F $1 -k | grep -v " /var/run" | tail +2
   shift
done
/usr/xpg4/bin/egrep '[ <tab>]nfs[ <tab>]' /etc/mnttab | /usr/xpg4/bin/egrep -v '[ <tab>,](ignore|indirect)[ <tab>,]' | /usr/bin/awk '{print $1, $2}' | while read line
do
   set -- $line
   NFSHOST=`echo $1 | /usr/bin/awk -F: '{print $1}'`
   SHARE=`echo $1 | /usr/bin/awk -F: '{print $2}'`
   /usr/sbin/ping $NFSHOST 5 >/dev/null 2>&1
   if [ $? -ne 0 ]; then
     echo "$1 IS NOT RESPONDING(ping_failed) 999% $2"
   else
     /usr/sbin/showmount -d $NFSHOST >/dev/null 2>&1
     if [ $? -ne 0 ]; then
       echo "$1 IS NOT AVAILABLE(showmount_failed) 999% $2"
     else
       /usr/sbin/showmount -d $NFSHOST | /usr/xpg4/bin/egrep "^$SHARE$"  >/dev/null 2>&1
       if [ $? -ne 0 ]; then
         echo "$1 IS NOT AVAILABLE(showmount_failed_to_find_share) 999% $2"
       else
         /bin/df -k $2 | tail +2
       fi
     fi
   fi
done
list Matthew Epp · Thu, 14 Jun 2007 18:28:07 -0400 ·
Oops I realized that the showmount command should be using -e, not -d. Also, I made a version for hobbitclient-linux.sh:

echo "[df]"
df -Pl -x none -x tmpfs -x shmfs -x unknown -x iso9660 | sed -e '/^[^ ][^     ]*$/{
N
s/[     ]*\n[   ]*/ /
}'
/bin/egrep '[   ]nfs[   ]' /etc/mtab | /bin/egrep -v '[ ,](ignore|indirect)[    ,]' | /usr/bin/awk '{print $1, $2}' | while read line
quoted from Matthew Epp
do
   set -- $line
   NFSHOST=`echo $1 | /usr/bin/awk -F: '{print $1}'`
   SHARE=`echo $1 | /usr/bin/awk -F: '{print $2}'`

   /bin/ping -c 1 $NFSHOST >/dev/null 2>&1
quoted from Matthew Epp
   if [ $? -ne 0 ]; then
     echo "$1 IS NOT RESPONDING(ping_failed) 999% $2"
   else

     /usr/sbin/showmount -e $NFSHOST >/dev/null 2>&1
quoted from Matthew Epp
     if [ $? -ne 0 ]; then
       echo "$1 IS NOT AVAILABLE(showmount_failed) 999% $2"
     else

       /usr/sbin/showmount -e $NFSHOST | egrep "^$SHARE " >/dev/null 2>&1
quoted from Matthew Epp
       if [ $? -ne 0 ]; then
         echo "$1 IS NOT AVAILABLE(showmount_failed_to_find_share) 999% $2"
       else

         /bin/df -k $2 | /bin/sed -e '/^[^       ][^     ]*$/{
N
s/[     ]*\n[   ]*/ /
}' | tail +2
       fi
     fi
   fi
done