From Robert.Taylor@HendrickAuto.com Wed Jun 24 08:14:14 2026 From: Robert.Taylor@HendrickAuto.com To: xymon@xymon.com Subject: [hobbit] HTML Code in Alerts Date: Mon, 06 Mar 2006 09:25:57 -0500 Message-ID: <58244622A4F3A04DBBF911ECBAF673A704218E47@hagsv0040.hendrickauto.local> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1220811209863384378==" --===============1220811209863384378== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Chris, I don't believe that Hobbit will send HTML alerts. If you want to do this yo= u will need to use a custom notification script for each test that provides H= TML alerts. I use the following script for mine... ############################################################ # The following is an HTML alert script. Place it in your # # ext directory as -email-notification.sh. # ############################################################ sendmail=3D"/usr/sbin/sendmail" bbserveraddress=3D"http://" echo $BBCOLORLEVEL echo $RECOVERED echo "$BBALPHAMSG" >$BBTMP/originalmessage.$$ lines=3D`wc -l $BBTMP/originalmessage.$$ | awk '{print $1}'` rowtail=3D$(($lines -1)) rowhead=3D$(($lines -3)) tail -n $rowtail $BBTMP/originalmessage.$$ | head -n $rowhead > $BBTMP/temp.$$ #echo $lines echo "To: $RCPT" >$BBTMP/notification.$$ case $RECOVERED in 0) case $BBCOLORLEVEL in red) echo "Subject: Hobbit [${ACKCODE}] $BBHOSTNAM= E:$BBSVCNAME CRITICAL (RED)" >>$BBTMP/notification.$$ ;; yellow) echo "Subject: Hobbit [${ACKCODE}] $BBHOSTNAM= E:$BBSVCNAME warning (YELLOW)" >>$BBTMP/notification.$$ ;; green) echo"Subject: Hobbit [${ACKCODE}] $BBHOSTNAME= :$BBSVCNAME okay (GREEN)" >>$BBTMP/notification.$$ ;; esac echo "Content-Type: text/html; charset=3D\"us-ascii\" " >>$BBTMP/notification.$$ ;; 1) echo "Subject: Hobbit $BBHOSTNAME:$BBSVCNAME recovered Content-Type: text/html; charset=3D\"us-ascii\" " >>$BBTM= P/notification.$$ ;; esac cat $BBTMP/temp.$$ >>$BBTMP/notification.$$ echo "

Please see: Service Details

" >>$BBTMP/notification.$$ $sendmail $RCPT <$BBTMP/notification.$$ rm -rf $BBTMP/*.$$ exit 1 Then put the following in your hobbit-alerts.cfg file HOST=3D* SERVICE=3Dmrtg RECOVERED COLOR=3Dred SCRIPT /home/hobbit/server/ext/html-email-notification.sh Also, I typically put the HTML alert tests in the EXSERVICE value of my other= alerts. That way it doesn't send out the text alerts and only sends out the= HTML ones. I am no programmer so there may be better ways to accomplish what I did, but = it works great and I am happy with it. Robert Taylor | Senior Manager of Information Systems | Hendrick Automotive G= roup=20 Mobile=C2=A0Phone (704) 241-4432 | NC Office=C2=A0(704) 566-3380 | NC Fax=C2= =A0(704) 566-3341 -----Original Message----- From: Chris Blank [mailto:CBlank at abcgroup.com]=20 Sent: Monday, March 06, 2006 8:39 AM To: hobbit at hswn.dk Subject: [hobbit] HTML Code in Alerts I am using server custom scripts that return HTML code to the hobbit for displaying. One of which is bbmrtg! I upgraded the latest snapshot because of another e-mail stating that it was patched in RC2. I am still getting the following: red Sun Feb 26 03:12:35 2006 &redTraffic Analysis for Multilink 1 Ranson to Orange: In: 333800 bytes/sec (86.5%) Out: 10590 bytes/sec (2.7%)

3D"Last
Rules
In < 0.0% < 0.0% 0.0% - 60.0% > 60.0% > 80.0%
Out < 0.0% < 0.0% 0.0% - 60.0% > 60.0% > 80.0%

How can I get the Hobbit to send everything as HTML formatted e-mails vice text? Chris Blank Network Engineer AB&C Group (304) 725-7050 x 2221 To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk --===============1220811209863384378==--