BB Unix Network Monitor - Message

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

Re: {bb} bbpage.sh: found service could be a substring



Holger Marzen wrote:
> 
> Version 1.2b
> ------------
> 
> I have in my bbwarnrules a setup of services where one is a substring of
> another: "sbserver" should be trigger an email but there is also a
> service nf-sbserver that also causes an email being sent.
> 
> It seems that we should change bb-page.sh when we test arg3. It looks
> like:
> 
>       if [ "$arg3" != "" ]
>       then
>               svcsdef=`echo $arg3 | $SED 's/*/.*/g'`
>               svcs=""
>               for svc in $svcsdef
>               do
>                       if [ "$svcs" = "" ]
>                       then
>                               svcs="$svc"
>                       else
>                               svcs="$svcs|$svc"
>                       fi
>               done
>       else
>               echo "bbwarnrules.cfg: Invalid entry in the file was found"
>               echo "            Empty services column entry"
>               set +f          # reenable globber
>               continue
>       fi
> 
> Methinks we have to change the variable svcs for the grep evaluation and
> add an expression that allows a space, tab or ^ at the beginning and a
> space, tab or $ at the end of the service. We will have to unescape the
> $ with a backslash, I think.

humm, I thought I was grepping using "egrep -x" ...

I'll check it out

bye
-- 
Robert-Andre Croteau
BB4 Technologies Inc.                         http://bb4.com/
(514) 996-4638
	Si le bonheur ne s'achete pas alors louez le.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
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