LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-08-2004, 10:32 AM   #1
orko
Member
 
Registered: Nov 2003
Location: Chittagong, Bangladesh
Distribution: RHEL 5
Posts: 63

Rep: Reputation: 19
Flat line in MRTG graph


hi all,

i've a MRTG server in RedHat Linux 8.0 which shows bandwidth consumption of my clients. the problem is , the MRTG graph shows a straight line fixed bandwidth consumption of client PC when the client PC remains off.

have a look to the follwing graph:

Straight Line Graph

From 20:00 pm to 11:00 am , the client PC was shutdown. but in graph it is showing that the client is consuming 20+ kbits/s for that time instead of 0 kbits/s. i think at the time of shuting down the bandwidth consumption of the client pc was 20+ kbits/sec.

i used --ifref=ip statement to the cfgmaker command. and the kernel didn't give any kind of error message when i used cfgmaker command and indexmaker command.

can i fix it by editing any file or i've to make cfg file again ??

thanx in advance

Last edited by orko; 06-08-2004 at 10:35 AM.
 
Old 06-08-2004, 01:35 PM   #2
Astro
Member
 
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 665

Rep: Reputation: 30
I think I had this problem once or twice, I don't remember what I did though to remedy it. I do however remember that when I removed the log file for that host and removed the graphs it never did it again. http://www.tyrantanic.net/mrtg/
 
Old 06-08-2004, 10:52 PM   #3
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
2 possibilities

1. You are shutting off the mrtg script for some duration.
2. MRTG is not getting an SNMP response each time it sends a query

MRTG reads the last entry in its log and continues to write that on to its graph.

Last edited by ppuru; 06-08-2004 at 11:03 PM.
 
Old 06-09-2004, 12:12 AM   #4
orko
Member
 
Registered: Nov 2003
Location: Chittagong, Bangladesh
Distribution: RHEL 5
Posts: 63

Original Poster
Rep: Reputation: 19
i've noticed that the straight line begins after shutting down the client PC.

i've deleted cfg file and all related files frm /var/www/html/mrtg and run cfgmaker and inexmaker again. but the result is same.

-----------------
 
Old 06-09-2004, 12:19 AM   #5
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
If you want to start with a clean slate, you will need to delete the mrtg logs.

Check for the entry WorkDir: <home directory>

The log files are in this directory.
 
Old 06-09-2004, 01:31 PM   #6
orko
Member
 
Registered: Nov 2003
Location: Chittagong, Bangladesh
Distribution: RHEL 5
Posts: 63

Original Poster
Rep: Reputation: 19
yah sir,
i've deleted all files including log files.

wateve , i got the solution myself by using the option "unknaszero"

i got it from the following link. i think it will be a good refernce for futer:

http://people.ee.ethz.ch/~oetiker/we...reference.html

another question : can i show the maximum traffic within each 5 minutes instead of 5 minutes average traffic ?
 
Old 06-09-2004, 10:40 PM   #7
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
you will need to make that change in the cron files...in /etc/cron.d/mrtg

and thank you for the unkaszero parameter ... my trying to help you has helped me too

Last edited by ppuru; 06-09-2004 at 10:42 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with mrtg graph orko Linux - Networking 2 02-02-2005 05:31 AM
Delete line from flat text file in C zaichik Programming 6 01-26-2005 06:16 PM
Statistic MRTG wont show the graph vladimir-dk Linux - Software 4 08-02-2004 09:03 AM
specific port traffic graph using mrtg newpenguin Linux - Networking 7 12-16-2003 06:00 PM
mrtg: error in Config file line 18 Boudewijn Linux - Software 0 12-08-2003 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:10 AM.

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