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:[EMAIL PROTECTED]: 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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens avinash phogat Verzonden: maandag 19 januari 2004 9:29 Aan: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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
