<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16490"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px" 
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true" 
name="Compose message area">
<DIV><FONT face=Calibri>Hi</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>I'll try again to post a message in hope this time i get 
lucky.</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>I'm trying ti send sms from hobbit with this 
hobbit-alerts.cfg:</FONT></DIV>
<DIV><FONT face=Calibri>HOST=dkcphodbfi01.dk.carlbro.net 
SERVICE=oracle,cpu<BR>    SCRIPT /usr/lib/hobbit/server/ext/lbj 
4520883616 REPEAT=1h TIME=*:1000:2200 COLOR=red</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>HOST=apollo.consit.dk TIME=*:0800:2200 
SERVICE=oracle,cpu,disk,memory<BR>    SCRIPT 
/usr/local/bin/sendsms 4520883616 "$BBALPHAMSG" REPEAT=24h COLOR=red 
FORMAT=sms</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>neither of them are working.</FONT></DIV>
<DIV><FONT face=Calibri>I have tried several different setup's but none of them 
are working.</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>I get nog errors in notification.log or 
page.log.</FONT></DIV>
<DIV><FONT face=Calibri>when i do:</FONT></DIV><FONT face=Calibri>
<DIV><BR>./bin/bbcmd hobbitd_alert --debug --test HOSTNAME oracle<BR>2010-02-15 
13:19:36 Using default environment file 
/usr/lib/hobbit/server/etc/hobbitserver.cfg<BR>2010-02-15 13:19:36 Opening file 
/usr/lib/hobbit/server/etc/bb-hosts<BR>2010-02-15 13:19:36 Opening file 
/usr/lib/hobbit/server/etc/hobbit-alerts.cfg<BR>2010-02-15 13:19:36 send_alert 
hostname:oracle state 0<BR>00028236 2010-02-15 13:19:36 send_alert 
hostname:oracle state Paging<BR>00028236 2010-02-15 13:19:36 Matching 
host:service:page 'hostname:kunder/page' against rule line 126<BR>00028236 
2010-02-15 13:19:36 *** Match with 'HOST=hostname SERVICE=oracle,cpu' 
***<BR>2010-02-15 13:19:36 Found a first matching rule<BR>00028236 2010-02-15 
13:19:36 Matching host:service:page 'hostname:oracle:kunder/page' against rule 
line 127<BR>2010-02-15 13:19:36     start,end,current time = 
600, 1320, 799 - found=1<BR>00028236 2010-02-15 13:19:36 *** Match with 'SCRIPT 
/usr/lib/hobbit/server/ext/lbj 4520883616 REPEAT=1h TIME=*:1000:2200 COLOR=red' 
***<BR>2010-02-15 13:19:36   repeat hostname|oracle|script|4520883616 
at 0<BR>2010-02-15 13:19:36   Alert for hostname:oracle to 
4520883616<BR>00028236 2010-02-15 13:19:36 Script alert with command 
'/usr/lib/hobbit/server/ext/lbj' and recipient 4520883616<BR>00028236 2010-02-15 
13:19:36 Matching host:service:page 'hostname:oracle:kunder/page' against rule 
line 129<BR>2010-02-15 13:19:36 No more secondary matching rule<BR></DIV>
<DIV>here's my lbj.sh:</DIV>
<DIV>#!/bin/sh</DIV>
<DIV> </DIV>
<DIV>#set -vx<BR>#debug on::<BR>#echo "/usr/local/bin/sendsms $RCPT $BBALPHAMSG 
$ACKCODE" >> /tmp/smsd.log</DIV>
<DIV> </DIV>
<DIV>/usr/local/bin/sendsms $RCPT "$BBALPHAMSG $ACKCODE"</DIV>
<DIV> </DIV>
<DIV>i have also tried smsplus.sh:</DIV>
<DIV>#!/bin/bash</DIV>
<DIV> </DIV>
<DIV>msg=`echo "${BBALPHAMSG}" | egrep 
"&yellow|&red"`<BR>msg="\n${msg}"</DIV>
<DIV> </DIV>
<DIV># CODE:<BR>#=======<BR>subject="!HB ${ACKCODE}"<BR>alert="${BBHOSTSVC} 
${BBCOLORLEVEL}"<BR>message="\n${alert}${msg}"</DIV>
<DIV> </DIV>
<DIV>echo -e "${message}" | mail -s "${subject}" $RCPT<BR></DIV>
<DIV>with same luck.</DIV>
<DIV> </DIV>
<DIV>I think i need something in my hobbit-alerts.cfg file, but i don't know 
what it is.</DIV>
<DIV>It could be the RCPT variable, but i dont know where to post it.</DIV>
<DIV> </DIV>
<DIV>Hope one of you can help me.</DIV>
<DIV> </DIV>
<DIV>I have posted the same problem here:</DIV>
<DIV><A 
href="http://www.hswn.dk/hobbiton/2010/01/msg00103.html">http://www.hswn.dk/hobbiton/2010/01/msg00103.html</A></DIV>
<DIV> </DIV>
<DIV>Kind regards</DIV>
<DIV>Lars Baad-Jensen<BR></DIV></FONT><BR>
<BR>
__________ Information from ESET Smart Security, version of virus signature database 4867 (20100215) __________<BR>
<BR>
The message was checked by ESET Smart Security.<BR>
<BR>
<A HREF="http://www.eset.com">http://www.eset.com</A><BR>


</BODY></HTML>