[mrtg] my mrtg polling interval set 5 minute but work 30 minute?

MMartin at jwpepper.com MMartin at jwpepper.com
Tue Jan 31 20:19:53 CET 2012


Hey Ali,

I'm no expert on the subject but I believe it depends on the mode in which 
your running MRTG (i.e. Daemon mode)..

If for example your running MRTG in daemon mode (which is what I am 
running). You would create a "global.cfg"
file which would contain all your global directives (which includes 
"interval").

The basic setup for my "global.cfg" file is this:

###################################################################
        #-------- Global Configuration Settings --------#

        ### Tell MRTG to run as a Daemon
        RunAsDaemon: Yes
        ### Tell routers.cgi to ignore this config file.
        routers.cgi*Ignore: yes
        ### Specify LogFormat to use rrd mode
        LogFormat: rrdtool
        ### Run mrtg every 5 minutes
        Interval: 5
        ### Directory where rrd files are stored
        WorkDir: /mrtg/mrtgwww/httpd


        #-------- Include Directives (what cfg files to include) --------#

        ### What cfg files would we like MRTG to update every 5 minutes:
        Include: path/and/file.cfg
        Include: path/and/file.cfg
        Include: path/and/file.cfg
        .......etc.......
###################################################################


Then you would run the following (I'm running MRTG and Routers2 on SLES 
10):
>From the Command Line you would run the "mrtg" script file and feed it 
your global.cfg file and it is also a good idea to enable logging...

        /usr/bin/perl -w /mrtg/bin/mrtg --daemon 
/mrtg/mrtgwww/cfg/global.cfg --logging /mrtg/log/mrtg.log



Well I hope that helps. Let me know if it does.

Thanks,
Matt





 











From:   ali ahmadi <ali.ahmadi.656 at gmail.com>
To:     <mrtg at lists.oetiker.ch>
Date:   01/31/2012 01:43 PM
Subject:        [mrtg] my mrtg polling interval set 5 minute but work 30 
minute?
Sent by:        <mrtg-bounces+mmartin=jwpepper.com at lists.oetiker.ch>



hi
i setup mrtg in a network.i setup polling interval as default(5 minute) 
but recenttly it work 30 minute?
_______________________________________________
mrtg mailing list
mrtg at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20120131/c0e40d87/attachment.htm 


More information about the mrtg mailing list