[mrtg] Re: Threshold examples

Scheidel, Greg Greg_Scheidel at ed.gov
Mon Feb 7 16:58:10 MET 2000


Some time ago I implemented a change to the mrtg perl script so that you
could specify an additional option "ThreshInterval" specifying how often you
wanted to be notified of a continuing threshold violation.  I implemented it
as a change to MRTG v2.7.5 but a quick check of the latest release shows no
changes that would prevent my mod from working.

I'd be happy to submit it as a contribution or e-mail details to anybody
interested.

Greg S.


-----Original Message-----
From: Miller Anthony (RBAU/ISY) [mailto:Anthony.Miller at au.bosch.com]
Sent: Sunday, February 06, 2000 8:17 PM
To: 'Justin Shore'
Cc: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Threshold examples
Importance: High

Justin

Mail is the correct option with Linux, but the command line escapes me at
the moment.
There have been a few people who have been looking at restricting the number
of times
the ThreshProgx options runs, if it has been run recently.

The rest of you gurus.....has anyone worked out how to do this yet??.....I
am sure I am not
the only one sick of getting emails every five minutes as the same target is
maxing out!!

regards
Anthony Miller
===============================
Network Engineer
Information Systems Department
Robert Bosch (Australia) Pty. Ltd.
1555 Centre Road, Clayton, Victoria, Australia, 3168
Tel. : +61 3 9541 7824          Fax : +61 3 9541 5284
E-mail : anthony.miller at au.bosch.com



-----Original Message-----
From: Justin Shore [mailto:listuser at vinnie.ksu.ksu.edu]
Sent: Monday, 7 February 2000 11:57 AM
To: Miller Anthony (RBAU/ISY)
Cc: mrtg at list.ee.ethz.ch
Subject: [mrtg] Re: Threshold examples
Importance: High


Anthony,
        Thanks for the reply.  That looks to be what I want to return
in the e-mail.  I'll have to see if I can find a easy way to do that
in Linux (generic 'mail' can do that I believe--probaly a seperate
script for each Threshold I'm monitoring or at least a seperate text
file to import).  I'm looking at the Thres items in config.html for
MRTG and I'm wondering, is there a way to make it send an e-mail when
it reaches value X, but not send another e-mail for Y minutes
(assuming its still above the threshold and regardless of whether or
not the Threshold was reached during period Y)?  Has anyone done
that?  If MRTG doesn't allow for it, a perl or shell script that
outputs the time to file when run and reads from it when run again
can probably do it.  Interesting idea...  Thanks again!

Justin

At 10:51 AM +1100 2/7/00, Miller Anthony (RBAU/ISY) wrote:
>Justin
>
>Try this....I am using 2.8.3 on an NT box which calls a batch file that
runs
>MAPISEND
>(a command line email util) which fires an email out if the threshold has
>been met
>
>ThreshMaxO[x.x.x.x]: 6000
>ThreshProgO[x.x.x.x]: c:\mrtg-2.8.3\run\ThreshOverWA.bat
>ThreshMaxI[x.x.x.x]: 6000
>ThreshProgI[x.x.x.x]: c:\mrtg-2.8.3\run\ThreshOverWA.bat
>
>ThreshOverWA.bat looks like this
>
>c:\mrtg-2.8.3\run\mapisend.exe -u SENDMAIL -p xxxxxxxx -r "Miller Anthony
>(RBAU/ISY)" -s "Western Australia PVC has exceeded 48K CIR" -m "Click here
>to see graph   file:\\xxxx\mrtg\x.x.x.x.html"
>
>This email tells me which PVC has been met, then places a shortcut to the
>graph in the email so
>you can jump straight to it to see. This monitors both In and Out OIDS.
>Attached is MapiSend
>
>see how you go


--
Justin Shore
K-State Linux Distro Mirror, Sysadmin
macdaddy at vinnie.ksu.ksu.edu
<http://vinnie.ksu.ksu.edu/mirror/rpm2html>
<ftp://vinnie.ksu.ksu.edu/pub/mirror/linux>

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:mrtg-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/mrtg



More information about the mrtg mailing list