<div>Hi Steve Shipway,</div><div>You are correct . I have an old MRTG 2.10. Now I uninstalled the old mrtg and installed mrtg-2.16.3.<br></div><div>When I run the cfg file</div><div></div><div><font color="#cc6600">EnableIPv6: no<br>
WorkDir: /home/Ashok/mrtg2/Station21<br>Options[_]: bits,growright<br>ThreshDir: /home/Ashok/mrtg2/Threshold<br>ThreshMailAddress[192.168.0.21_2]:<a href="mailto:root@192.168.1.130">root@192.168.1.130</a><br>#ThreshMaxI[192.168.0.21_2]: 10000<br>
#ThreshProgI[192.168.0.21_2]: `/home/Ashok/mrtg2/cfg/tresh.sh`<br><br>######################################################################<br># System: <a href="http://station21.com">station21.com</a><br># Description: Linux <a href="http://station21.com">station21.com</a> 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686<br>
# Contact: Root <root@localhost> (configure /etc/snmp/snmp.local.conf)<br># Location: Unknown (edit /etc/snmp/snmpd.conf)<br>######################################################################<br><br>### Interface 2 >> Descr: 'eth0' | Name: '' | Ip: '192.168.0.21' | Eth: '00-0c-29-24-49-d2' ###<br>
<br>Target[192.168.0.21_2]: <a href="mailto:2%3Aashok@192.168.0.21">2:ashok@192.168.0.21</a>:<br>SetEnv[192.168.0.21_2]: MRTG_INT_IP="192.168.0.21" MRTG_INT_DESCR="eth0"<br>MaxBytes[192.168.0.21_2]: 1250000<br>
Title[192.168.0.21_2]: Traffic Analysis for 2 -- <a href="http://station21.com">station21.com</a><br>PageTop[192.168.0.21_2]: <h1>Traffic Analysis for 2 -- <a href="http://station21.com">station21.com</a></h1><br>
        <div id="sysdetails"><br>                 <table><br>                         <tr><br>                                 <td>System:</td><br>                                 <td><a href="http://station21.com">station21.com</a> in Unknown (edit /etc/snmp/snmpd.conf)</td><br>
                        </tr><br>                         <tr><br>                                 <td>Maintainer:</td><br>                                 <td>Root &lt;root@localhost&gt; (configure /etc/snmp/snmp.local.conf)</td><br>                         </tr><br>                         <tr><br>                                 <td>Description:</td><br>
                                <td>eth0 </td><br>                         </tr><br>                         <tr><br>                                 <td>ifType:</td><br>                                 <td>ethernetCsmacd (6)</td><br>                         </tr><br>                         <tr><br>                                 <td>ifName:</td><br>
                                <td></td><br>                         </tr><br>                         <tr><br>                                 <td>Max Speed:</td><br>                                 <td>10.0 Mbits/s</td><br>                         </tr><br>                         <tr><br>                                 <td>Ip:</td><br>                                 <td>192.168.0.21 ()</td><br>
                        </tr><br>                 </table><br>         </div></font><br><br>It's giving the error as:</div><div><br><font color="#ff0000">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.<br>
ERROR: Please fix the error(s) in your config file</font></div><div><font color="#ff0000"></font></div><div><font color="#000000">which means that I don't specify any TrashMailServer.</font></div><div><font color="#000000">Actually, I have no idea about my mail server.</font></div>
<div><font color="#000000">Can you help me out to know my SMTP mail server?</font></div><div><font color="#000000">It's better if you give some sample script about the THRESHOLDS in mrtg.</font></div><div><font color="#000000"></font></div>
<div><font color="#000000"></font></div><div>On Thu, Apr 29, 2010 at 1:52 AM, Steve Shipway <span dir="ltr"><<a href="mailto:s.shipway@auckland.ac.nz">s.shipway@auckland.ac.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<div style="font-family:Tahoma;direction:ltr;color:#000000;font-size:13px">
<div>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.</div>
<div> </div>
<div><font size="2" face="tahoma">Steve</font></div>
<div dir="ltr"> </div>
<div style="direction:ltr">
<hr>
</div>
<div style="direction:ltr"><font color="#000000" size="2" face="Tahoma"><b>From:</b> mrtg-bounces+s.shipway=<a href="http://auckland.ac.nz" target="_blank">auckland.ac.nz</a>@<a href="http://lists.oetiker.ch" target="_blank">lists.oetiker.ch</a> [mrtg-bounces+s.shipway=<a href="http://auckland.ac.nz" target="_blank">auckland.ac.nz</a>@<a href="http://lists.oetiker.ch" target="_blank">lists.oetiker.ch</a>] On Behalf Of ashok kumar [<a href="mailto:g.ashok1988@gmail.com" target="_blank">g.ashok1988@gmail.com</a>]<br>
</font></div>
<div style="direction:ltr"><font color="#000000" size="2" face="Tahoma"><b>...</b></font></div><div class="im">
<div>
<div>But when I run the mrtg as <br>
<font color="#cc6600">[Ashok@station130 ~]$ env LANG=C mrtg mrtg2/cfg/130.cfg</font><font color="#cc6600"><br>
ERROR: CFG Error Unknown Option "threshmailaddress" on line 6 or above.<br>
Check doc/reference.txt for Help</font><br>
</div>
</div>
</div></div>
</div>
</blockquote></div><br><br>Kind Regards,<br>G. Ashok Kumar,<br>Softential, Inc.<br>