[mrtg] unreconognized arguments $1, $2and $3

José Antonio Calderón C. jcalderon at bankguay.com
Fri Mar 14 20:55:56 MET 2003


I configure alerts on MRTG, but the $1, $2 and $3 arguments are no recongnized by my program, for test I make a bat file for send a message to my computer.
The config file is:

# 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

--------------------------------------------------

and the bat files are:

mailalert.bat
...........................
    net send pcname  traffic on $1 currently $3%, but should be not more than $2%
..........................

mailok.bat
...........................
    net send pcname traffic on $1 is good, currently $2%
............................

The display messages are:

traffic on $1 currently $3%, but should be not more than $2%

and

traffic on $1 is good, currently $2%

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