[mrtg] MRTG Fault Management using Thresholds

ashok kumar g.ashok1988 at gmail.com
Thu Apr 29 07:02:31 CEST 2010


Hi Steve Shipway,
You are correct . I have an old MRTG 2.10. Now I uninstalled the old mrtg
and installed mrtg-2.16.3.
When I run the cfg file
EnableIPv6: no
WorkDir: /home/Ashok/mrtg2/Station21
Options[_]: bits,growright
ThreshDir: /home/Ashok/mrtg2/Threshold
ThreshMailAddress[192.168.0.21_2]:root at 192.168.1.130
#ThreshMaxI[192.168.0.21_2]: 10000
#ThreshProgI[192.168.0.21_2]: `/home/Ashok/mrtg2/cfg/tresh.sh`

######################################################################
# System: station21.com
# Description: Linux station21.com 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005
i686
# Contact: Root <root at localhost> (configure /etc/snmp/snmp.local.conf)
# Location: Unknown (edit /etc/snmp/snmpd.conf)
######################################################################

### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '192.168.0.21' | Eth:
'00-0c-29-24-49-d2' ###

Target[192.168.0.21_2]: 2:ashok at 192.168.0.21 <2%3Aashok at 192.168.0.21>:
SetEnv[192.168.0.21_2]: MRTG_INT_IP="192.168.0.21" MRTG_INT_DESCR="eth0"
MaxBytes[192.168.0.21_2]: 1250000
Title[192.168.0.21_2]: Traffic Analysis for 2 -- station21.com
PageTop[192.168.0.21_2]: <h1>Traffic Analysis for 2 -- station21.com</h1>
  <div id="sysdetails">
  <table>
  <tr>
  <td>System:</td>
  <td>station21.com in Unknown (edit /etc/snmp/snmpd.conf)</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>10.0 Mbits/s</td>
  </tr>
  <tr>
  <td>Ip:</td>
  <td>192.168.0.21 ()</td>
  </tr>
  </table>
  </div>

It's giving the error as:

ERROR: ThreshMailAddress[192.168.0.21_2]: specified without
"ThreshMailServer:" at
/usr/local/src/mrtg-2.16.3/bin//../lib/mrtg2/MRTG_lib.pm line 845.
ERROR: Please fix the error(s) in your config file
which means that I don't specify any TrashMailServer.
Actually, I have no idea about my mail server.
Can you help me out to know my SMTP mail server?
It's better if you give some sample script about the THRESHOLDS in mrtg.
On Thu, Apr 29, 2010 at 1:52 AM, Steve Shipway <s.shipway at auckland.ac.nz>wrote:

>  Which version of MRTG do you have?  The various thresholding commands
> were not properly available before 2.16, IIRC.  Get verion 2.16.2 if you
> don't have it already.
>
> Steve
>
>  ------------------------------
>  *From:* mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch[mrtg-bounces+s.shipway=
> auckland.ac.nz at lists.oetiker.ch] On Behalf Of ashok kumar [
> g.ashok1988 at gmail.com]
>  *...*
>  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
>


Kind  Regards,
G. Ashok Kumar,
Softential, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20100429/2af6b48f/attachment.htm 


More information about the mrtg mailing list