LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-05-2010, 09:06 PM   #1
annaabhi
LQ Newbie
 
Registered: Jun 2009
Location: Nepal
Posts: 19

Rep: Reputation: 0
mrtg problem


hi!
my mrtg refreshes usually too late(15 min.)and i want to make
it 5 min.But i dont know where to edit.Please help!!

anna
 
Old 08-06-2010, 01:24 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

My MRTG runs every 5 minutes as configured in the crontab, installed by mrtg itself. This crontab file for my distro (Debian) is located in /etc/cron.d/ and is named mrtg. Contents of that file:
Code:
*/5 *   * * *   root    if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then mkdir -p /var/log/mrtg ; env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi
Find your crontab file for mrtg and most likely it will show 15 instead of 5. Change the value and restart your cron daemon. That should take care of it.

Kind regards,

Eric
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MRTG problem kicko Linux - Software 1 07-01-2008 02:22 PM
MRTG problem kicko Mandriva 2 12-16-2006 08:52 AM
MRTG Problem shipon_97 Linux - Security 1 01-30-2006 09:13 AM
MRTG Problem shipon_97 Linux - Security 6 01-28-2006 09:54 AM
mrtg problem vytenis Linux - Software 1 03-19-2004 09:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration