[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/172.17.72.2/html
Imagedir: /var/www/html/mrtg/172.17.72.2/html/images
Logdir: /var/www/html/mrtg/172.17.72.2/logs
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
Administration
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: '172.16.101.46'
|
Target[172.17.72.2_2]: 2:public at 172.17.72.2:
SetEnv[172.17.72.2_2]: MRTG_INT_IP="172.16.101.46"
MRTG_INT_DESCR="Serial0/0"
MaxBytes[172.17.72.2_2]: 256000
ThreshProgI[172.17.72.2_2]: `ls`
Title[172.17.72.2_2]: Traffic Analysis for 2 -- Athena-KKJ
PageTop[172.17.72.2_2]: <H1>Traffic Analysis for 2 -- Athena-KKJ</H1>
<TABLE>
<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>172.16.101.46 ()</TD></TR>
</TABLE>
*
*
*
*
*
As noted in my previous mail it gives the following error with this
configuration:
ERROR: CFG Error in "threshprogi[]", line 75: Threshold program ls cannot be
executed
Can you guide as to where I'm going wrong?
Cheers!!
Vaibhav
-----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.)
Martin
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
be
>executed
>
--
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