[mrtg] Setting up MRTG as a Windows Service

Westley Chang ChangW at gao.gov
Thu Jan 6 21:57:42 MET 2005


Hello,
   I just got the new version of mrtg-2.11.1 installed.  Thanks Tobias!
 However I am having a bit of a problem with setting up MRTG as a
windows service.  
   Apparently I have MRTG running fine as a service with one entry in
the mrtg.bat file.  However, if you add more than one command line in
the mrtg.bat file (please see example below), the MRTG service will only
execute one at a time.  Therefore, if I have a mrtg.bat file as such:


perl c:\mrtg\bin\mrtg --logging=eventlog c:\mrtg\config\mrtg.cfg
perl c:\mrtg\bin\mrtg --logging=eventlog c:\mrtg\config\mrtg2.cfg
perl c:\mrtg\bin\mrtg --logging=eventlog c:\mrtg\config\mrtg3.cfg

The MRTG service will only invoke the first mrtg.cfg file.  HOWEVER, if
you stop the MRTG service and restart it again, it will execute the
second one.  And so on.  Is there any way the mrtg.bat file can execute
several .cfg files at once instead of starting and stopping a service. 
Please advise.  Thanks!


            Wes

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