[mrtg] Re: How to auto-start mrtg (wperl).....

Alegria, Luis lalegria at ics-canada.net
Fri Oct 1 15:18:04 MEST 2004


 
http://www.geocities.com/mrtg_daemon/Main.html
 
This is what I use. You have to create a .Bat file with something like this:
 
 
Rem ######################### Routers
 
perl c:\mrtg\bin\mrtg c:\mrtg\bin\Routers\mrtg1.cfg
perl c:\mrtg\bin\mrtg c:\mrtg\bin\Routers\mrtg2.cfg
perl c:\mrtg\bin\mrtg c:\mrtg\bin\Routers\mrtg3.cfg
perl c:\mrtg\bin\mrtg c:\mrtg\bin\Routers\mrtg4.cfg
perl c:\mrtg\bin\mrtg c:\mrtg\bin\Routers\mrtg5.cfg
perl c:\mrtg\bin\mrtg c:\mrtg\bin\Routers\mrtg6.cfg
perl c:\mrtg\bin\mrtg c:\mrtg\bin\Routers\mrtg7.cfg
perl c:\mrtg\bin\mrtg c:\mrtg\bin\Routers\mrtg8.cfg
perl c:\mrtg\bin\mrtg c:\mrtg\bin\Routers\mrtg9.cfg
perl c:\mrtg\bin\mrtg c:\mrtg\bin\Routers\mrtg10.cfg
perl c:\mrtg\bin\mrtg c:\mrtg\bin\Routers\mrtg11.cfg
 
Then determine the pull time for that .bat file, and place a shortcut of the
program in the startup folder. It's been working for me for about 2 years
like a charm.
 
 
 Luis Alegria  
---------------------------------------
This mailbox is Spam Protected
http://www.ics-canada.net 
 
-----Original Message-----
From: Adam Breaux [mailto:abreaux at domainbank.com] 
Sent: Tuesday, September 28, 2004 4:24 PM
To: MRTG at list.ee.ethz.ch
Subject: [mrtg] Re: How to auto-start mrtg (wperl).....
 
http://www.firedaemon.com/
 
Turns ANY app into a service. Lots easier than srvany or other kludgey
methods.
 
-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]
On Behalf Of Joseph Pierini
Sent: Tuesday, September 28, 2004 3:14 PM
To: 'Jon'; MRTG at list.ee.ethz.ch
Subject: [mrtg] Re: How to auto-start mrtg (wperl).....
 
You could make it a service:
 
Create a batch file called mrtg.bat with the following line:
perl mrtg mrtg.cfg 
 
Save it in your MRTG \bin folder
 
Save the following to a text file called mrtg.reg (Modify the
Application
and AppDirectory lines to reflect your actual installation directory):
 
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
 
Double click on the file to import it in your registry.
 
Obtain the resource kit files instsrv.exe and srvany.exe and save them
to
your \winnt directory
 
Open a command window and type:
instsrv MRTG srvany
 
Open Services and start the new MRTG service. If you use WMI scripts you
will need to change the startup user to a local administrator account.
 
Your mrtg.conf file must contain the line "RunAsDaemon: Yes" for the
service
to run every 5 minutes.
 
Good luck!
 
Joseph Pierini
 
 
 
 
-----Original Message-----
From: Jon [mailto:Jon at xanga.net] 
Sent: Tuesday, September 28, 2004 11:33 AM
To: MRTG at list.ee.ethz.ch
Subject: [mrtg] Re: How to auto-start mrtg (wperl).....
 
You can put the .exe in the startup folder
 
 
-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]
On
Behalf Of Marc Nowell
Sent: Tuesday, September 28, 2004 1:48 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] How to auto-start mrtg (wperl).....
 
 
 
 
 
Does anyone have a good way to auto-start mrtg (wperl) when the Windows
2003 Server that it's running on is restarted?
 
----------------------------------
Marc A. Nowell
 
--
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
 
--
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