I use srvany.exe and instrv.exe from the resource kit to make MRTG run on all my servers.
Make sure your MRTG conf includes the line: RunAsDaemon: Yes Create a bat file with 1 line: Perl mrtg mrtg.cfg Save it to your MRTG \bin folder Copy srvany.exe and instsrv.exe into the \winnt directory Open a cmd window and type: Instrv MRTG srvany Modify this to your exact install point: <REG File Start> Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MRTG] "Type"=dword:00000010 "Start"=dword:00000002 "ErrorControl"=dword:00000001 "ImagePath"=hex(2):73,00,72,00,76,00,61,00,6e,00,79,00,00,00 "DisplayName"="MRTG" "DependOnService"=hex(7):54,00,63,00,70,00,69,00,70,00,00,00,00,00 "DependOnGroup"=hex(7):00,00 "ObjectName"="LocalSystem" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MRTG\Parameters] "Application"="D:\\mrtg-2.9.27\\bin\\mrtg.bat" "AppDirectory"="D:\\mrtg-2.9.27\\bin\\" [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MRTG\Security] "Security"=hex:01,00,14,80,a0,00,00,00,ac,00,00,00,14,00,00,00,30,00,00,00,0 2,\ 00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\ 00,00,02,00,70,00,04,00,00,00,00,00,18,00,fd,01,02,00,01,01,00,00,00,00,00,\ 05,12,00,00,00,74,00,69,00,00,00,1c,00,ff,01,0f,00,01,02,00,00,00,00,00,05,\ 20,00,00,00,20,02,00,00,76,00,65,00,00,00,18,00,8d,01,02,00,01,01,00,00,00,\ 00,00,05,0b,00,00,00,20,02,00,00,00,00,1c,00,fd,01,02,00,01,02,00,00,00,00,\ 00,05,20,00,00,00,23,02,00,00,76,00,65,00,01,01,00,00,00,00,00,05,12,00,00,\ 00,01,01,00,00,00,00,00,05,12,00,00,00 </REG FILE END> Cut and paste that into a text file, save as MRTG.reg Double click on the file and say yes to the import. Go to services and change the startup account from System to an account with Admin Rights Start MRTG service. -----Original Message----- From: 1984Sitaram Pamarthi [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 1:24 AM To: [EMAIL PROTECTED] Subject: [mrtg] Running MRTG as a service Hi All, How can run MRTG as a system service..?Is there any software that serves my requirement...? I tried Firdaemon ,but the demo vertion allowing meto make one service only... Please suggest ASAP. Thanks in Advance, Sitaram. ---------------------------------------------------------------------------- Add zing to Hotmail. Get FREE newsletters. Subscribe now![1] --- Links --- 1 http://g.msn.com/8HMBENIN/2740??PS= -- Unsubscribe mailto:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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
