[mrtg] Data collection interval

Kevin Wong KWong at PaceWildenstein.com
Fri Nov 21 19:00:41 CET 2008


Troy, thanks for the hint.  I am running it on Windows and I can't seem
to cross reference that.  Anyone else??

-----Original Message-----
From: Troy Wical [mailto:troy at wical.com]
Sent: Friday, November 21, 2008 12:49 PM
To: Kevin Wong
Cc: mrtg at lists.oetiker.ch
Subject: Re: [mrtg] Data collection interval


On Nov 21, 2008, at 10:31 AM, Kevin Wong wrote:

> Hi, instead of collecting data on my Cisco switch every 5 minutes,  
> is it possible to change it to say 1 minute interval?  I am  
> collecting data from 3 devices using rateup under just one MRTG  
> instance running.

If you are running in cron, you can adjust your interval.  In the  
example below, I am running a query every 2 minutes.

*/2 *	* * *	root	if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg/ 
mrtg_haze.cfg ]; then env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg_haze.cfg  
 >> /var/log/mrtg/mrtg_haze.log 2>&1; fi

Peace, Troy



More information about the mrtg mailing list