[smokeping-users] Re: adding an URL to alerts?

Andy Franklin afranklin at bergstrominc.com
Mon Dec 2 16:01:14 MET 2002


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:afranklin at bergstrominc.com
|  Phone (direct): 815.873.4550
|  Main Phone: 815.874.7821 (x4550)
|

>>> "Nipper, Arnold" <arnold at nipper.de> 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: arnold at nipper.de 
phone:/mobile: +49 172 2650958
fax: +49 6224 9259 333




--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe 
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help 
Archive     http://www.ee.ethz.ch/~slist/smokeping-users 
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi 


--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/smokeping-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the smokeping-users mailing list