[mrtg] Re: Running MRTG as service on W2K server
Bryant Loftin
bloftin at Insight.com
Wed Jan 16 18:42:03 MET 2002
David,
I added the five mrtg scripts onto mom (our mrtg box) as services with
autostart
1) Copy srvany.exe to c:\winnt\system32 ;did this so that it should always
be in path from win2k reskit.
2) From cmd ran instsrv 'myservice' c:\winnt\system32\srvany.exe
3) run regedit32 and find
\\hklm\system\currentcontrolset\services\'myservice'
4) added for each
a subKey: Parameters
then added reg_sz values for: Application: d:\bin\perl\wperl.exe
and : AppParameters : d:\mrtg\bin\mrtg --logging=eventlog d:\(whatever path
to config file was appropriate) like d:\mrtg\out\switches\switches.cfg
5)then set the services up for autostarting. Did this because the scripts
keep whacking themselves every two weeks or so.
Make sure you have these global's in your cfg:
RunAsDaemon:yes
Interval:5
bjl
-----Original Message-----
From: Soden, David [mailto:dsoden at cov.com]
Sent: Wednesday, January 16, 2002 12:23 PM
To: 'mrtg at list.ee.ethz.ch'
Subject: [mrtg] Running MRTG as service on W2K server
I currently have mrtg 2.9.17 running on a Windows 2000 server and
it works fine but I'd like to run the process as a service instead
of as a CMD executable. So far, I have successfully created a
service using the SRVANY.EXE tool from the Windows 2000 Resource
Kit but it only creates the webpages once upon initial startup of
the service. I am looking for the 5 minute interval that I get
when I execute the CMD file manually.
Has anyone had any success running mrtg as a service on a Windows
2000 server? Any hints suggestions would be greatly appreciated.
Again, all works great if I just run it from the CMD line.
Thanks,
David Soden
--
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
--
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