[mrtg] Re: Setting Alerts by configuring Threshold Checking

Vaibhav Bawa VaibhavB at niit.com
Fri Aug 30 12:26:26 MEST 2002

Hi Martin,

Thanks for your response!! 

I'm sending you two portions of my cfg file. The first shows the options
that I've set globally and are applicable to all the
devices-to-be-monitored. The second portion is from a PER TARGET config of a
serial interface for which I want to run a program (in this case simply
'ls') when the incoming traffic deviates from the two extreme thresholds (as
defined by ThreshMinI[_]: 0% and ThreshMaxI[_]: 95% global options)...
		1st portion [note last 3 options]

Htmldir: /var/www/html/mrtg/
Imagedir: /var/www/html/mrtg/
Logdir: /var/www/html/mrtg/
RunAsDaemon: Yes
options[_]: growright,bits,avgpeak,unknaszero,nobanner
Title[_]: Network Traffic Analysis for NIIT Technologies
AddHead[_]:<H1>Resource Analysis for Critical Devices at NIIT-Athena</H1>
PageTop[_]: <H1>Resource Analysis for Critical Devices at NIIT-Athena</H1>
PageFoot[_]: Contact <A HREF=mailto:dummy at example.com;>Divisional Lan
YTics[_]: 10
XSize[_]: 600
YSize[_]: 200
WithPeak[_]: ymw
ThreshDir: /var/mrtg/thresh
ThreshMinI[_]: 0%
ThreshMaxI[_]: 95%
*		2nd portion [note option 4]
### Interface 2 >> Descr: 'Serial0/0' | Name: 'Se0/0' | Ip: ''

Target[]: 2:public at
SetEnv[]: MRTG_INT_IP=""
MaxBytes[]: 256000
ThreshProgI[]: `ls`
Title[]: Traffic Analysis for 2 -- Athena-KKJ
PageTop[]: <H1>Traffic Analysis for 2 -- Athena-KKJ</H1>
   <TR><TD>System:</TD>     <TD>Athena-KKJ in </TD></TR>
   <TR><TD>Maintainer:</TD> <TD></TD></TR>
   <TR><TD>Description:</TD><TD>Serial0/0  </TD></TR>
   <TR><TD>ifType:</TD>     <TD>ppp (23)</TD></TR>
   <TR><TD>ifName:</TD>     <TD>Se0/0</TD></TR>
   <TR><TD>Max Speed:</TD>  <TD>2048.0 kbits/s</TD></TR>
   <TR><TD>Ip:</TD>         <TD> ()</TD></TR>

As noted in my previous mail it gives the following error with this

ERROR: CFG Error in "threshprogi[]", line 75: Threshold program ls cannot be

Can you guide as to where I'm going wrong?



-----Original Message-----
From: Martin Rheumer [mailto:martinr at hotkey.net.au]
Sent: Friday, August 30, 2002 3:08 PM
To: Vaibhav Bawa; mrtg at list.ee.ethz.ch
Subject: Re: [mrtg] Setting Alerts by configuring Threshold Checking

Yes many times.

Using Perl scripts, shell scripts and command lines.
Can you paste the exact cfg files ( not if its huge just the
target you want to ThreshHold Check.)


At 09:03 PM 8/29/2002 +0530, Vaibhav Bawa wrote:
>Hi All,
>I tried configuring the ThresholdI[_] option so that the Threshold value is
>applicable for all the devices listed in the cfg file, but when I run MRTG,
>it gives the following error 
>ERROR: CFG Error in "threshprogi[]", line 75: Threshold program ls cannot

Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

More information about the mrtg mailing list