BB Unix Network Monitor - Message

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

Re: {bb} Email Ack's



> Charles Gillanders wrote:
> 
> Hi, I am about to start hacking together a kludge to allow e-mail
> acknowledgement of pages.
> 
> I.E send an e-mail to an account with a subject/message body that will
> acknowledge a particular alert and
> include the required time before shouting about this problem again
> (just like the web page)
> 
> Before I start doing this I wanted to be sure that no-one had already
> done so or was already working on it.
> Don't want to bother remaking the wheel.....
> 

It shouldn't be kluge, I've put in the code to call bb-ack.sh
from the command line (don't know if it works, I haven't tried it
in a long time) but you could probably call it as:

bb-ack.sh <ticket #> <delay> [message]

I've just checked, there's a few bugs (nothing you can fix :),
just save $1/$2/$3 in ARG1/ARG2/ARG3 before the . $BBHOME/etc/bbdef.sh
line.  bbdef.sh makes the arguments disappear.  Then in the code
where the command line arguments are read in, replace the $1/$2/$3 with
the $ARG1/$ARG2/$ARG3 (remove the if for MESSAGE, you don't need it
anymore). At about line 110.

bye
-- 
Robert-Andre Croteau	BSD,MOTU		robert@unix.sh
Services Conseils Informatiques MOTU Inc. 	robert@motu.ca
(514) 465-3057					rcroteau@videotron.ca
http://www.motu.ca/                             http://www.bb4.com
	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