<br><font size=2 face="sans-serif">Hello! I'm running nagios 2.2(although
the problem was existing in 2.0).</font>
<br><font size=2 face="sans-serif">I am trying to enable our sms modem(
a nokia 30) to send sms messages whenever anything goes down.</font>
<br><font size=2 face="sans-serif">So far i have setup timeperiods, contacts,
contactgroups and enabled which ever notificationoptions that were needed.</font>
<br><font size=2 face="sans-serif">I have managed to install GSM-lib and
have successfully sent sms messages directly from the software supplied.</font>
<br>
<br><font size=2 face="sans-serif">This is my command:</font>
<br><font size=2 face="sans-serif">define command {</font>
<br><font size=2 face="sans-serif"> command_name
notify-by-epager</font>
<br><font size=2 face="sans-serif"> command_line
/usr/bin/printf "%b" "$HOSTNAME$: $SERVICEDESC$ is $SERVICESTATE$
@'$CONTACTPAGER'$" > /var/spool/sms/sms`date +%d%m%Y%H%M%S%N`</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif">The problem seems to be that the $CONTACTPAGER$
variable is empty.</font>
<br><font size=2 face="sans-serif">the content of my textfile is: HOST:
CPU Load is CRITICAL @''</font>
<br><font size=2 face="sans-serif">I have tried with the $USERADDRESS1$
variable, with the email variable and so forth. I have tried without single
quotation and with double quotation.</font>
<br>
<br>
<br><font size=2 face="sans-serif">This is my contacts definition:</font>
<br><font size=2 face="sans-serif">define contact {</font>
<br><font size=2 face="sans-serif"> contact_name
Vagt</font>
<br><font size=2 face="sans-serif"> alias
Vagt</font>
<br><font size=2 face="sans-serif"> contactgroups
admins,Citrix,Windows</font>
<br><font size=2 face="sans-serif"> host_notification_period
24x7</font>
<br><font size=2 face="sans-serif"> service_notification_period
24x7</font>
<br><font size=2 face="sans-serif"> host_notification_options
d,u,r</font>
<br><font size=2 face="sans-serif"> service_notification_options
w,u,c,r</font>
<br><font size=2 face="sans-serif"> host_notification_commands
host-notify-by-epager</font>
<br><font size=2 face="sans-serif"> service_notification_commands
notify-by-epager</font>
<br><font size=2 face="sans-serif"> pager
<phonenumber> </font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif">Here are the time periods:</font>
<br><font size=2 face="sans-serif">define timeperiod {</font>
<br><font size=2 face="sans-serif"> timeperiod_name
24x7</font>
<br><font size=2 face="sans-serif"> alias
24 Hours A Day, 7 Days A Week</font>
<br><font size=2 face="sans-serif"> sunday
00:00-24:00</font>
<br><font size=2 face="sans-serif"> monday
00:00-24:00</font>
<br><font size=2 face="sans-serif"> tuesday
00:00-24:00</font>
<br><font size=2 face="sans-serif"> wednesday
00:00-24:00</font>
<br><font size=2 face="sans-serif"> thursday
00:00-24:00</font>
<br><font size=2 face="sans-serif"> friday
00:00-24:00</font>
<br><font size=2 face="sans-serif"> saturday
00:00-24:00</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif">And from the menu in nagios i can see
that the notification has been "processed":</font>
<br><font size=3>Host Service
Type
Time
Contact
NotificationCommand
Information </font><a href="http://172.28.160.4/nagios/cgi-bin/extinfo.cgi?type=1&host=BBHSQL1"></a>
<br><font size=3>host </font><a href="http://172.28.160.4/nagios/cgi-bin/extinfo.cgi?type=2&host=BBHSQL1&service=Web+server"><font size=3>Web
server</font></a><font size=3> CRITICAL
04-09-2006 22:33:01
</font><a href="http://172.28.160.4/nagios/cgi-bin/config.cgi?type=contacts#Vagt"><font size=3>Vagt</font></a><font size=3>
</font><a href="http://172.28.160.4/nagios/cgi-bin/config.cgi?type=commands#notify-by-epager"><font size=3>
notify-by-epager</font></a><font size=3>
Connection refused </font>
<br>
<br>
<br><font size=2 face="sans-serif">I'm really without any clue of what
i have been doing wrong.</font>
<br><font size=2 face="sans-serif">but, as I said earlier, it seems to
be as if the variables containing contactinformations are empty.</font>
<br>
<br><font size=2 face="sans-serif">Regards<br>
<br>
Security Specialist<br>
Christian Kammer Have<br>
<br>
Bispebjerg Hospital<br>
MIT (Mediko, Informatik & Tele) <br>
Bispebjerg Bakke 23<br>
2400 København NV<br>
<br>
mobil: 2044 0125<br>
E-mail: ckh99@bbh.hosp.dk<br>
</font>