How to write a custom notification command
Subhendu Ghosh
sghosh at sghosh.org
Mon Oct 28 17:41:18 CET 2002
Currently there is not *PHONE macro/field definition. The assumtion here
being that everything is text based.
So the SMS contact info should be stored in CONTACTPAGER since the device
is in essence acting like a pager.
-sg
On Thu, 24 Oct 2002, Björn Ekengren wrote:
> I would like to write an sms notification command like this:
>
> # 'notify-by-sms' command definition
> define command{
> command_name notify-by-sms
> command line /usr/local/smssender $CONTACTPHONE$
> "$NOTIFICATIONTYPE$ $SERVICEDESC$ $HOSTALIAS$ $HOSTADDRESS$ $SERVICE STATE$
> $DATETIME$ $OUTPUT$"
> }
>
> However I have not found any way to define $CONTACTPHONE$. Does this mean
> that I have to hardcode the contact phone number and make a separate command
> for each user that should be notified ? I guess that I can use
> $CONTACTPAGER$ to store the phone number but it looks ugly to me.
>
> Comments, reflections, solutions ?
>
> /Bjorn
>
--
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
More information about the Users
mailing list