[mrtg] Re: Newbie Question (Include)

David Sawyer david.sawyer at uk.mckhboc.com
Mon Apr 2 16:28:34 MEST 2001


I currently have 38 Include commands, it allows me to control my scripts a
lot better. With my limited VB knowledge I have created a 'MRTG Daemon',
this is a program that executes the 'perl.exe  mrtg  mainscript.cfg' command
every 5 minutes, this allows me to add new scripts or change any included
scripts without having to stop the process.

To all Windows users:
When the program executes the perl command, you don't see the MSDOS box on
the screen, you only see the icon on the taskbar :-)
Also has a visible timer so you know when the next update is due to be run,
If you interested, drop me a mail.


I have a main script called "Mainscript.cfg" and with in that I have my
global commands then all my include commands.

eg

Options[_]: unknaszero, bits
WithPeak[_]: y
Unscaled[_]: dwmy
Kilo[_]: 1024
WorkDir: e:\
IconDir: ./

## Warwick customer links
Include: warwick\war-1.cfg
Include: warwick\war-2.cfg
Include: warwick\War-3.cfg
Include: warwick\War-4.cfg
Include: warwick\War-5.cfg
Include: warwick\War-6.cfg

## Harold Wood customer links
Include: hwood\HW-1.cfg
Include: hwood\HW-2.cfg

## Newcastle customer links
Include: newcastle\New-1.cfg
Include: newcastle\New-2.cfg
Include: newcastle\New-3.cfg

etc, etc, etc


HTH
Dave




----------------------------------------------------------------------------
The information contained in this e-mail is confidential and is intended
only for the named recipient(s). If you are not the intended recipient you
must not copy, distribute, or take any action or reliance on it.
If you have received this e-mail in error, please notify the sender.
Any unauthorised disclosure of the information contained in this e-mail
is strictly prohibited.
----------------------------------------------------------------------------



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