The easiest thing to do if you only want to know when a threshold is
violated is use:

ThreshDir (GLOBAL)
By defining ThreshDir to point to a writable directory, MRTG will only
alert you when a threshold boundery has been crossed.

Example:

 ThreshDir: /var/mrtg/thresh

This way you only get one e-mail when the threshold is violated and
another when it is ok again..
Works very well..

KLW

Kerry L. Werry
604-699-8087 (w)
604-762-1293 (c)

This message is intended only for the named recipients and may contain
information that is confidential, privileged, or exempt from disclosure
under applicable law. Any dissemination, use, or copying of this message
by anyone other than the named recipients is strictly prohibited


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of PAUL WILLIAMSON
Sent: June 10, 2005 11:02 AM
To: [EMAIL PROTECTED]
Subject: [mrtg] Re: threshold alert every 2 hour, not every 5 minutes

Add that logic to your threshold program.

Paul

>>> "Dan Wozniak" <[EMAIL PROTECTED]> 06/10/05 1:40 PM >>>
Every 5 minutes, I'm having my MRTG server poll my router for the
bandwidth status.  Every time it polls, it checks the input against
the
defined threshold boundary which I set.  If the threshold is broken,
it
calls a perl script which then sends out an email.  

If the T1 maxes out for 30 minutes, I'd receive 6 email messages
notifying me of the threshold break.   This is unreasonable.  I want
to
receive 1 email message only if the T1 maxes out for 2 hours straight.
Does anyone have any ideas on how I would go about doing this?  Thanks
in advance.

--Dan

--
Unsubscribe mailto:[EMAIL PROTECTED] 
Archive     http://lists.ee.ethz.ch/mrtg 
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org 
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi 



--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi


--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

Reply via email to