Arnold-

I have SmokePing run an external script that sends pages and e-mails. In the 
script I simply do a modification of the target and place it into the URL. Here 
is how I do it...

#
# Receive parameters
#
ALERT="$1"
TARGET="$2"
LOSSPAT="$3"
RTTPAT="$4"
HOST="$5"
#
# Other variables
#
DT=$(date +"%Y-%m-%d_%T")
URLTGT=${TARGET//\//.}
URL="http://smokeping.domain.com/cgi-bin/smokeping.cgi?target=${URLTGT}";
BODY="$ALERT \n$TARGET \n$LOSSPAT \n$RTTPAT \n$HOST \n$URL \n"
SUBJECT="[SmokeAlert] $TARGET $ALERT"


|--------------------------------------------------------------------
|  Andy Franklin
|  Network Systems Administrator
|  Bergstrom Inc.
|  mailto:[EMAIL PROTECTED]
|  Phone (direct): 815.873.4550
|  Main Phone: 815.874.7821 (x4550)
|

>>> "Nipper, Arnold" <[EMAIL PROTECTED]> 2002-11-28 04:37:39 >>>

Hi all,

currently when you have defined an alert and it gets triggered you receive
an email with something like

"Got a match for alert "alert1" for lvl1/lvl2/lvl3"

I find it cool to have

"Got a match for "alert1" for
http://www.mymonit.or/smokeping.cgi?target=lvl1.lvl2.lvl3";

instead. Comments?


Arnold
--
Arnold Nipper / nIPper consulting, Sandhausen, Germany
email: [EMAIL PROTECTED] 
phone:/mobile: +49 172 2650958
fax: +49 6224 9259 333




--
Unsubscribe mailto:[EMAIL PROTECTED] 
Help        mailto:[EMAIL PROTECTED] 
Archive     http://www.ee.ethz.ch/~slist/smokeping-users 
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi 


--
Unsubscribe mailto:[EMAIL PROTECTED]
Help        mailto:[EMAIL PROTECTED]
Archive     http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

Reply via email to