[mrtg] Threshold alerting using "ThreshMaxO"

AS, Raj Kumar RajKumar at solectron.com
Wed Aug 6 09:45:41 MEST 2003


Hi All,
I am using mrtg-2.9.29 on win2k. I am also using fire daemon to make mrtg
run as a service in win2k. I thought doing some threshold alerting when the
utilization of WAN link goes beyond 70%. I am monitoring about 8 routers.

This is what I did...

I just tested the "ThreshMaxO" option in a sample mrtg.cfg file for one
router. It works fine. I am able to receive alert mails. But it doesn't work
on my live mrtg config for some reason.
In my live mrtg config file I use include statement to call the individual
config file for better manageability (shown below)  

####################################
RunAsDaemon: yes
Options[_]: bits,growright
WorkDir: c:\Inetpub\wwwroot\mrtg
Refresh: 300
Include: c:\mrtg-2.9.29\bin\x1-mrtg.cfg
Include: c:\mrtg-2.9.29\bin\x2-mrtg.cfg
Include: c:\mrtg-2.9.29\bin\x3-mrtg.cfg
Include: c:\mrtg-2.9.29\bin\x4-mrtg.cfg
Include: c:\mrtg-2.9.29\bin\x5-mrtg.cfg
#####################################

In x1-mrtg.cfg file I added the below statements..
ThreshMaxO: 173600
ThreshProgO: c:\mrtg-2.9.29\alertmail.bat

In my alertmail.bat I am using the blat program to send a mail to me. When I
do these changes on the live mrtg.cfg file and restart the service using
firedaemon, I find the mrtg is not working and the mrtg files are not
getting updated.

Did anybody in the group faced similar problem? Any know workarounds for
this issue.

Any inputs are greatly appreciated. Thanks in advance.

Best Regards,
Raj.




--
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