[mrtg] Re: Setting Alerts by configuring Threshold Checking
Vaibhav Bawa
VaibhavB at niit.com
Fri Sep 6 19:18:05 MEST 2002
Hi,
I'm able to invoke a script when the link goes below a specified threshold,
via ThreshProgI, but am unable to do so when the link resumes its normal
operation, via ThreshProgOkI. The problem is mrtg doesn't give any errors
while initialising, but it just won't execute the script when the link
utilization exceeds 20%, i.e. the ThreshMinI I've specified.
Have you ever used ThreshProgOkI? I'm attaching a sample cfg file below
*
*
*
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[_]: 20%
*
*
*
*
*
* 2nd portion [note option 4 & 5]
*
### 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]: /path/to/some/script
ThreshProgOKI[172.17.72.2_2]: /path/to/some/script
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>
*
*
*
*
*
Cheers!!
Vaibhav
-----Original Message-----
From: Martin Rheumer [mailto:martinr at hotkey.net.au]
Sent: Saturday, August 31, 2002 3:19 AM
To: Vaibhav Bawa
Cc: mrtg at list.ee.ethz.ch
Subject: RE: [mrtg] Setting Alerts by configuring Threshold Checking
Its probably going to be as simple as the full path to the
ls program. On Redhat Linux `/bin/ls`
-- Cut due to overquoting check.... --
>ThreshProgI[172.17.72.2_2]: `ls`
>ThreshProgI[172.17.72.2_2]: `/bin/ls`
Martin
--
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
--
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