[mrtg] New to MRTG for Windows

Johannes Prost Johannes at yorktondigital.ca
Wed Apr 23 04:15:14 CEST 2008


Hi Alexis,

I am running MRTG on windows with a cron job calling a batch file using perl.exe,
not wperl.exe.

My cfg file looks like this at the start

------- begin cfg file -------
### Global Config Options

#  for UNIX
# WorkDir: /home/http/mrtg

# Directory where to store the graphs (out put)
#  or for NT
WorkDir: D:\Sambar\vhosts\yorktondigital\stats\system

### Target options are overriding the default options
### Global Defaults
TimeStrPos[_]: RU
TimeStrFmt[_]: %a %d %b %H:%M %Y
Title[_]: :: Live Statistics at Yorkton-Digital ::
Colours[_]: #228B22, #990033, #006600, #F02010

EnableIPv6: no
RunAsDaemon: no
# Interval: 5
Refresh: 300

-------- end sample ------

You will see that "Run as daemon: no" is set and "interval: 5" is not activated.
Therefore I am using the cron job. If you don't have a cron utility for windows
available, you can use "Windows scheduler", does the same job; calling the batch
file every 5 minutes.

And my simple batch file looks like this, just correct the path to your mrtg\bin
folder. I am using Active Perl too.

------- begin batch file -------
D:
cd mrtg\bin
perl mrtg system.cfg --logging=system.txt
------- end batch file ---------


Johannes



> Hello Everyone,
>
> I've created a windows "service" for MRTG which loads cleanly but I cant seem to
> get "wperl" to load.   I'm using ActivePerl 5.8.8 and MRTG 2.16.1
>
> The following is at the beginning of my cfg file:
>
> WorkDir: C:\InetPub\wwwroot\MRTG
> start /Dc:\mrtg-2.16.1\bin wperl mrtg --logging=eventlog mrtg.cfg
> RunAsDaemon: yes
> Interval: 5
>
> I then receive the following error:
> ERROR: Line 2 (start /Dc:\mrtg-2.16.1\bin wperl mrtg --logging=eventlog mrtg.cfg)
> in CFG file (mrtg.cfg) does not make since
>
> Any Ideas what I'm doing wrong?
>
> I'm using the exact example used in the "Configuring MRTG 2.16.1 Windows
> Installation Guide" found on page 4.
>
> Any help is appreciated,
>
> Thanks
>
> Alexis Sales
> I.S. Project Manager
> Departmental Systems Support
> City of Glendale
> Information Services Dept.
> 141 N. Glendale Ave #314
> Glendale, CA 91206-4997
> 818.548.3957
> 818.543.3247 (fax)
> HYPERLINK "mailto:asales at ci.glendale.ca.us"asales at ci.glendale.ca.us
>
> There's a new sheriff in town and his name is ARA
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 269.23.3/1390 - Release Date: 4/21/2008 4:23 PM
>
>
>
> _______________________________________________
> mrtg mailing list
> mrtg at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
>
>


-- 
Yorkton-Digital
affordable webhosting & design
now offering jabber secure instant messaging
http://www.yorktondigital.ca

Jabber ID (JID)
johannes at jabber.yorktondigital.ca





More information about the mrtg mailing list