[mrtg] MRTG Fault Management using Thresholds

ashok kumar g.ashok1988 at gmail.com
Wed Apr 28 14:53:21 CEST 2010


HI folks,
I'm trying to do fault management my sytem using MRTG.
This is the 130.cfg file to fault manage my system(192.168.1.130)
EnableIPv6: no
WorkDir: /home/Ashok/mrtg2/Temp
Options[_]: bits,growright
ThreshDir: /home/Ashok/mrtg2/Threshold
ThreshMailAddress[192.168.1.130_2]:root at 192.168.1.130
ThreshMaxI[192.168.1.130_2]: 10000
ThreshProgI[192.168.1.130_2]: `/home/Ashok/mrtg2/cfg/tresh.sh`
######################################################################
# System: Station130
# Description: Linux station130 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:30:39 EST
2005 i686
# Contact: Root <root at localhost> (configure /etc/snmp/snmp.local.conf)
# Location: Unknown
######################################################################
### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '192.168.1.130' | Eth:
'00-14-22-58-a3-be' ###

Target[192.168.1.130_2]: 2:ashok at 192.168.1.130 <2%3Aashok at 192.168.1.130>:
SetEnv[192.168.1.130_2]: MRTG_INT_IP="192.168.1.130" MRTG_INT_DESCR="eth0"
MaxBytes[192.168.1.130_2]: 12500000
Title[192.168.1.130_2]: Traffic Analysis for 2 -- Station130
PageTop[192.168.1.130_2]: <H1>Traffic Analysis for 2 -- Station130</H1>
 <TABLE>
  <TR><TD>System:</TD> <TD>Station130 in Unknown</TD></TR>
  <TR><TD>Maintainer:</TD> <TD>Root &lt;root at localhost&gt; (configure
/etc/snmp/snmp.local.conf)</TD></TR>
  <TR><TD>Description:</TD><TD>eth0 </TD></TR>
  <TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
  <TR><TD>ifName:</TD> <TD></TD></TR>
  <TR><TD>Max Speed:</TD> <TD>100.0 Mbits/s</TD></TR>
  <TR><TD>Ip:</TD> <TD>192.168.1.130 (station130)</TD></TR>
 </TABLE>


But when I run the mrtg as

[Ashok at station130 ~]$ env LANG=C mrtg mrtg2/cfg/130.cfg
ERROR: CFG Error Unknown Option "threshmailaddress" on line 6 or above.
  Check doc/reference.txt for Help

Please help me.
Kind Regards
G. Ashok Kumar,
Softential.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20100428/8755d913/attachment.htm 


More information about the mrtg mailing list