BB Unix Network Monitor - Message

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

Re: {bb} Client can't find BBPAGER by ip address?



Hello Robert-Andre,

Thanks for the response!  We are using 1.9e.  However, the problem 
still looks to exist in the bbinc.sh in the client software.

(It looks correct for the BBDISPLAYS settings, but incorrect for the 
BBPAGERS.)

We changed:

                if test "$IP" = "0.0.0.0"               # SMM 1.10 DDNS 
SUPPORT
                then
                 echo " ${BBPAGERS} " | $GREP " ${HOSTNAME} " 
>/dev/null 2>/dev/null
                        if [ "$?" -ne 0 ]
                        then
                                BBPAGERS="${BBPAGERS} 
${HOSTNAME}${IPPORT}"     # USE THE NAME
                        fi
                else
                        echo " ${BBPAGERS} " | $GREP " ${IP} " >/dev/null 
2>/dev/null
                        if [ "$?" -ne 0 ]
                        then
                                BBPAGERS="${BBPAGERS} 
${HOSTNAME}${IPPORT}"     # USE THE IP ADDR
                        fi
                fi


to

                if test "$IP" = "0.0.0.0"               # SMM 1.10 DDNS 
SUPPORT
                then
                        echo " ${BBPAGERS} " | $GREP " ${HOSTNAME} " 
>/dev/null 2>/dev/null
                        if [ "$?" -ne 0 ]
                        then
                                BBPAGERS="${BBPAGERS} 
${HOSTNAME}${IPPORT}"     # USE THE NAME
                        fi
                else
                        echo " ${BBPAGERS} " | $GREP " ${IP} " >/dev/null 
2>/dev/null
                        if [ "$?" -ne 0 ]
                        then
                                BBPAGERS="${BBPAGERS} ${IP}${IPPORT}"   # 
USE THE IP ADDR
                        fi
                fi


Everything is working great now!  Thanks for the heads up!

-Michael


On Thu, 24 Mar 2005, Robert-Andre Croteau wrote:

> what version are you running ? 1.9d ?
> 
> There's a bug in bbinc.sh,
> 
> change:
> 
> if test "$IP" = "0.0.0.0"               # SMM 1.10 DDNS SUPPORT
> then
>      BBPAGERS="${BBPAGERS} ${HOSTNAME}${IPPORT}"     # USE THE NAME
> else
>      BBPAGERS="${BBPAGERS} ${HOSTNAME}${IPPORT}"     # USE THE IP ADDR
> fi
> 
> to
> 
> if test "$IP" = "0.0.0.0"               # SMM 1.10 DDNS SUPPORT
> then
>      BBPAGERS="${BBPAGERS} ${HOSTNAME}${IPPORT}"     # USE THE NAME
> else
>      BBPAGERS="${BBPAGERS} ${IP}${IPPORT}"     # USE THE IP ADDR
> fi
> 
> it was always using the hostname.
> 
> bye
> 

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index