<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.14.1">
</HEAD>
<BODY>
I am trying to make the smokealert mail that comes in for alarms show the IP address of the device with packetloss. <BR>
<BR>
Is there any variable that has been defined that I can use in the Smokeping.pm to do this with? <BR>
(I am NOT fluent in perl, but do have an installation I can break while I figure this out)<BR>
<BR>
Any suggestions on where I need to start?<BR>
<BR>
The main reason I am doing this is I heard that perl will take bash commands internal to the script, and I am going to have the mail function send an snmp trap before it sends the mail.<BR>
<BR>
something like this:<BR>
<BR>
snmptrap -v1 -c public 10.10.10.10 CW-MIB::cwtraps <##IP ADDRESS##> 6 19 '' SNMPv2-MIB::sysLocation.0 s "<##IP ADDRESS##> loss is at <##Alert##>"<BR>
<BR>
In a perfect world I would be able to change the 19 as a variable so loss25=17, loss50=18, and loss100=19..<BR>
<BR>
Is something like this even possible for a novice to do??<BR>
<BR>
<BR>
<BR>
</BODY>
</HTML>