[mrtg] Re: threshold problem
Eswar
eswar at mantraonline.com
Mon Jan 19 18:17:38 MET 2004
Hi,
Here is my CFG file
---------------------------
WorkDir: /root/etm/thar/data
ThreshDir: /root/etm/thar/test
Directory[del-cust-dsl]: del-cust-dsl
Target[del-cust-dsl]: -\GigabitEthernet0/3:public at xxxxxxxxxx:
SetEnv[del-cust-dsl]: MRTG_INT_IP="xxxxxxxxxxxxx"
MRTG_INT_DESCR="Serial3/1/6"
MaxBytes[del-cust-dsl]: 8500000
ThreshMaxI[del-cust-dsl]: 30%
ThreshProgI[del-cust-dsl]: /root/etm/thar/testeri.pl
Title[del-cust-dsl]: Traffic Analysis for DEL-CUST-DSL ON FIBER
PageTop[del-cust-dsl]: <H1>Traffic Analysis for CUST-DEL ON FIBER FROM xxx
</H1>
<TABLE>
<TR><TD>Description:</TD><TD>GigabitEthernet0/3; used; CUST-DELHI DSL ON
FIBER FROM xxx </TD></TR>
<TR><TD>Max Speed:</TD> <TD>68 Mbits/s</TD></TR>
<TR><TD>Ip:</TD> <TD>xxxxxxxxxxxx ()</TD></TR>
</TABLE>
------------------------
And Script
#!/usr/bin/perl
$a=$ARGV[0];$b=$ARGV[1];$c=$ARGV[2];$logfile="records.txt";
open(LOG, ">>$logfile");
print LOG "$a, $b, $c\n";
close(LOG);
But this dont create any logfile. I have permission in the current
directory.
Please guide
Regards
Eswar
----- Original Message -----
From: "Michel" <pjam at xs4all.nl>
To: <mrtg at list.ee.ethz.ch>
Sent: Monday, January 19, 2004 4:10 PM
Subject: [mrtg] Re: threshold problem
Hi Avinash,
This might be the information you are looking for:
http://www.cloudnet.com/~tom/mrtg/thresh.html
or
http://www.ee.ethz.ch/~slist/mrtg/msg03962.html
regards
Michel
-----Oorspronkelijk bericht-----
Van: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]
Namens avinash phogat
Verzonden: maandag 19 januari 2004 9:29
Aan: mrtg at list.ee.ethz.ch
CC: dan.mcdonald at austinenergy.com
Onderwerp: [mrtg] threshold problem
hello all
can u pls send me examples of an external program or script set up to
send
an e-mail. I am using
linux platform Redhat 7.2
I want to use MRTG for sending mail wheneever threshold condition is
met,
for example mail should go to defined mail id when ever CPU utilization
of
router is exceeding 60% (I will set threshold as 60%)
Waiting for response.
Thanks in Advance.
Regards,
Avinash Phogat
_________________________________________________________________
Gujarat Kite Fest at http://go.msnserver.com/IN/40247.asp
www.gujaratkitefest.com
--
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
--
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