<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2719.2200" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=237025110-24102002><FONT face=Arial size=2>I would like to
write an sms notification command like this:</FONT></SPAN></DIV>
<DIV><SPAN class=237025110-24102002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=237025110-24102002><FONT face=Courier size=2># 'notify-by-sms'
command definition<BR>define
command{<BR>
command_name
notify-by-sms<BR> command
line /usr/local/smssender $CONTACTPHONE$ "$NOTIFICATIONTYPE$
$SERVICEDESC$ $HOSTALIAS$ $HOSTADDRESS$ $SERVICE STATE$ $DATETIME$
$OUTPUT$"<BR>
}<BR></FONT></SPAN></DIV>
<DIV><SPAN class=237025110-24102002><FONT face=Arial size=2>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. </FONT></SPAN></DIV>
<DIV><SPAN class=237025110-24102002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=237025110-24102002><FONT face=Arial size=2>Comments,
reflections, solutions ?</FONT></SPAN></DIV>
<DIV><SPAN class=237025110-24102002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=237025110-24102002><FONT face=Arial
size=2>/Bjorn</DIV></FONT></SPAN></BODY></HTML>