[mrtg] Re: How to configure Alerts on MRTG
José Antonio Calderón C.
jcalderon at bankguay.com
Fri Mar 14 18:41:52 MET 2003
Hi, I configure Alert on MRTG as you explain. I have w2k, then i make a .bat
file for display an alarm, but the $1, $2 and $3 arguments are no
recongnized.
My config file is:
Language: spanish
# Created by
# cfgmaker public at 172.26.65.7 --Global 'WorkDir: e:\www\carlos' --output
carlos.cfg
######################################################################
# System: CVC
# Description: Hardware: x86 Family 15 Model 2 Stepping 7 AT/AT COMPATIBLE -
Software: Windows 2000 Version 5.0 (Build 2195 Uniprocessor Free)
# Contact:
# Location:
######################################################################
Target[172.26.65.7_16777219]: 16777219:public at 172.26.65.7:
SetEnv[172.26.65.7_16777219]: MRTG_INT_IP="172.26.65.7"
MRTG_INT_DESCR="Intel 8255x-based Integrated Fast Ethernet"
MaxBytes[172.26.65.7_16777219]: 12500000
Title[172.26.65.7_16777219]: Traffic Analysis for 16777219 -- CVC
Options[_]: growright, bits
PageTop[172.26.65.7_16777219]: <H1>Traffic Analysis for 16777219 -- CVC</H1>
<TABLE>
<TR><TD>System:</TD> <TD>CVC in </TD></TR>
<TR><TD>Maintainer:</TD> <TD></TD></TR>
<TR><TD>Description:</TD><TD>Intel 8255x-based Integrated Fast Ethernet
</TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD></TD></TR>
<TR><TD>Max Speed:</TD> <TD>12.5 MBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD>172.26.65.7 (CVC)</TD></TR>
</TABLE>
ThreshDir: c:\mrtg-2.9.25\tmp\
#[device definitions]
ThreshMaxI[172.26.65.7_16777219]: 2000
ThreshProgI[172.26.65.7_16777219]: c:\mrtg-2.9.25\bin\mailalert.bat
ThreshProgOKI[172.26.65.7_16777219]: c:\mrtg-2.9.25\bin\mailok.bat
WorkDir: e:\www\carlos
ans the bat files are:
mailalert.bat
net send pcname mailalert from $1
mailok.bat
net send pcname mailok from $1
Please help me, i need display correct alarms...
Thanks
jacc
--
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