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]:[email protected]
#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 <r...@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:[email protected] <2%[email protected]>:
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;r...@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 <[email protected]>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:* 
> [email protected][mrtg-bounces+s.shipway=
> [email protected]] On Behalf Of ashok kumar [
> [email protected]]
>  *...*
>  But when I run the mrtg as
> [as...@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.
_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Reply via email to