[mrtg] Re: Using ThreshProg under Windows

Sverre Munthe sm at lorstem.no
Thu Dec 4 18:33:08 MET 2003


Sure did, but as I said in the last mail, I didn't change the directory
in my batch file.
 

-----Original Message-----
From: Koelstra, J. (Jan) [mailto:JKoelstra at MINSZW.NL] 
Sent: 4. desember 2003 15:56
To: Sverre Munthe
Cc: mrtg at list.ee.ethz.ch
Subject: RE: [mrtg] Using ThreshProg under Windows

Sverre,

I use the following in my Windows environment (MRTG is running on a NT
4.0 box):

----snip-----
ThreshMaxO[BSAVHZK041.temperature]: 28
ThreshProgO[BSAVHZK041.temperature]:
F:\Scheduler\MRTG_threshold_mailer.cmd
ThreshProgOKO[BSAVHZK041.temperature]: F:\Scheduler\MRTG_OK_mailer.cmd
----snip-----

The only difference I see is your relative path versus my absolute path

I guess you did check the bat file from the command prompt?

Inside the cmd file I use blat for sending mail.
(http://www.interlog.com/~tcharron) 

Hth,

Jan.

-----Original Message-----
From: Sverre Munthe [mailto:sm at lorstem.no]
Sent: Thursday, December 04, 2003 3:35 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Using ThreshProg under Windows


Trying to use the ThreshProg line in my Windows environment and it
doesn't seem to work. I'm guessing it's because of the way Windows
operates, so wondering if anyone know how the command has to be to work.

Here is how I do it today:

ThreshMinI[LORFILE-temperature]: 10 
ThreshMaxI[LORFILE-temperature]: 25 
ThreshProgI[LORFILE-temperature]: ..\batch\lorfile-tempi.bat
ThreshProgOKI[LORFILE-temperature]: ..\batch\lorfile-tempi-ok.bat
ThreshMinO[LORFILE-temperature]: 10 
ThreshMaxO[LORFILE-temperature]: 50 
ThreshProgO[LORFILE-temperature]: ..\batch\lorfile-tempo.bat
ThreshProgOKO[LORFILE-temperature]: ..\batch\lorfile-tempo-ok.bat

In the batch directory I have the bat-files which looks like this:

c:\wsendmail\wsendmail -sLorFile-Temp -fXXX YYY < lorfile-tempi.txt

Have also tried this way:

cmd /C "c:\wsendmail\wsendmail -sLorFile-Temp -fXXX YYY <
lorfile-tempi.txt"

Can anyone help?


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



Het ministerie van Sociale Zaken en Werkgelegenheid sluit elke
aansprakelijkheid uit in verband met het niet juist, onvolledig of niet
tijdig overkomen van de informatie in deze e-mail. 
Aan dit bericht kunnen geen rechten worden ontleend. 

Dit bericht is alleen bestemd voor de geadresseerde. Indien dit bericht
niet voor u bestemd is, verzoeken wij u dit onmiddellijk aan ons te
melden en de inhoud van het bericht te vernietigen. 
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
--
The ministry of Social Affairs and Employment is not liable for any
incorrect or incomplete transmission of the information in this e-mail
or for any delay in its receipt. 
This message shall not constitute any obligations.

This message is intended solely for the addressee.
If you have received this message in error, please inform us immediately
and delete its content.



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