I wrote a custom external server-side script to do just that.  Consider the license as open source.  To use the script, in the hobbit-alerts.cfg file, use something like this:<br>SCRIPT /var/hobbit/server/ext/oursms <distro list> REPEAT=1h COLOR=red,purple
<br><br>#!/bin/sh<br>#<br># Author:       Gary Baluha<br># Created On:   3-16-2006<br># Description:  Adds a searchable subject string to SMS-formatted messages<br>#               to allow client-side filtering of possible duplicate alerts.
<br># NOTES:        BBHOSTSVC = The host affected, and the name of the alert<br>#               BBALPHAMSG = The full alert message (same as<br>#                               BBHOSTSVC [ACKCODE] if FORMAT=SMS)<br>#               ACKCODE = The ack code for the alert
<br>#               BBCOLORLEVEL = The color of the alert (red, yellow, etc)<br>#<br># REVISION HISTORY:<br># =================<br># Ver.  Date            Author  Notes<br># ----  ----            ------  -----<br># v1.0  3-16-2006       GMB     Initial creation
<br># v2.0  2-13-2007       GMB     Page alert now shows what is red/yellow, in<br>#                               addition to the name of the alert<br><br># VARIABLES:<br>msg=`echo "${BBALPHAMSG}" | egrep "&yellow|&red"`
<br>msg="\n${msg}"<br><br># CODE:<br>#=======<br>subject="!HB ${ACKCODE}"<br>alert="${BBHOSTSVC} ${BBCOLORLEVEL}"<br>message="\n${alert}${msg}"<br><br>echo -e "${message}" | mail -s "${subject}" $RCPT
<br><br><br><div><span class="gmail_quote">On 3/8/07, <b class="gmail_sendername">Jones, Jason (Altrincham)</b> <<a href="mailto:JasonAS_Jones@mentor.com">JasonAS_Jones@mentor.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I was thinking about this too, the only way I could think to possibly do<br>it would be to make a script to grep for &color and send only that line<br>on.  The only problem arises if the alert has no &color tag or has
<br>multiple (no script has emerged yet but it might once I get back to<br>hobbit in about 2-3 weeks)<br>Jason.<br><br>-----Original Message-----<br>From: Trent Melcher [mailto:<a href="mailto:tmelcher@saionline.com">tmelcher@saionline.com
</a>]<br>Sent: 08 March 2007 16:30<br>To: Hobbit<br>Subject: [hobbit] SMS paging<br><br>Is there a way or has anyone been able to hack something together to<br>send more detail using the SMS tag.  Im using qpage to send out my SMS's
<br>to our pagers but it would be nice if it would send along the Error that<br>actually triggered the alert.<br><br>server1.somedomain.com.disk red 123456<br><br>This is nice but it would be better if it could give you the details,
<br><br>server1.somedomain.com.disk red "/opt 99%" 123456<br><br>or something similar.<br><br>Thanks<br>Trent<br><br>Trent Melcher<br>Unix/Linux Systems Administrator<br>Securities America Financial Corporation<br>
(402) 399-9111 x2774<br><a href="mailto:tmelcher@saionline.com">tmelcher@saionline.com</a><br><br>Securities America, Inc., a Registered Broker/Dealer, Member NASD/SIPC.<br>Advisory services offered through Securities America Advisors, Inc., an
<br>SEC Registered Investment Advisory<br><br>The text of this communication is confidential, and use by any person<br>who is not the intended recipient is prohibited.  Any person who<br>receives this communication in error is requested to immediately destroy
<br>the text of this communication without copying or further dissemination.<br>Your cooperation is appreciated.<br><br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">
hobbit-unsubscribe@hswn.dk</a><br><br><br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br><br><br></blockquote></div><br>