[mrtg] Re: MRTG Thresholds - Almost there

Keith E Johnson kj at sunclipse.com
Fri Nov 22 18:44:18 MET 2002


In win2k, you can call a perl script directly. The file name just needs to
end with .pl.

The other thing I'm doing is using the windows task scheduler. Now all of my
threshold scripts work fine.



-----Original Message-----
From: Barry_Young at interliant.com [mailto:Barry_Young at interliant.com] 
Sent: Friday, November 22, 2002 9:06 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] MRTG Thresholds - Almost there


Wonder if anyone can assist me in finalising my threshold alerting under
mrtg.

I am running mrtg on a win2k platform and call a batch file that in turn
calls my perl script whenever a threshold is breached.  (Thanks to Paul
Vaillancourt for previously pointing out that you cannot call a perl script
directly under win32.)

If I run mrtg from DOS, the threshold alerting works fine.  However when
running as a service (under FireDaemon) no threshold alerts are ever
generated.  Could this be something to do with desktop interaction? I'm
guessing and clutching at straws so any help gratefully accepted.

Snips of relevant configs as follows:-

MRTG.CFG
=========
#--- Global Config Options
Workdir: C:\MRTG-Data\UKDC
Threshdir: C:\MRTG-Data\Threshold
RunAsDaemon: Yes
Interval: 5
Target[x]: etc etc
ThreshMaxI[x]: 25600
ThreshProgI[x]: C:\MRTG\bin\threshold-over.bat

BATCH FILE
==========
rem "Threshold Breached......"
c:\perl\bin\perl.exe c:\mrtg\bin\threshold.pl %1 %2 %3

Thanks and regards,


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



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