MRTG questions

Posted on 2003-02-19
Medium Priority
Last Modified: 2008-03-10
Dear all,
    I am a new mrtg user and want to ask about the following questions:
1.) I want to do a self monitoring. If the monitoring machine is up, it will return 1; otherwise (e.g no network, reboot, power off) it will return 0. I try to do this by monitoring the operational status of loopback interface ( .iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifOperStatus ). However, it always return 1. Which thing should I monitor so as to fulfil my purpose?
2.) I use Linux to monitor a few routers' traffic. I found something strange: e.g If my linux is down for about 30 minutes, and then up again, I found that the traffic value will have a surge and then back to normal again :
Inside my log file
1045689900 91 47 96 50
1045689600 113 54 122 58
1045689300 39 51997 122 76440            <---a surge in traffic
1045689000 0 24460 0 76440                  <-- a surge in traffic
1045688700 0 0 0 0
1045688400 0 0 0 0
1045688100 0 0 0 0
1045687800 0 0 0 0
1045687500 0 0 0 0
which shows incorrect data on the graph. How can I fix this problem ?
Thank you very much!
ps below is part of my cfg file:
Title[cis1601_trfs0]: Cisco 1601 Serial0 Traffic Rate
PageTop[cis1601_trfs0]: <H1>Cisco 1601 Serial0 Traffic Rate</H1>
MaxBytes[cis1601_trfs0]: 193000
WithPeak[cis1601_trfs0]: ymw
Options[cis1601_trfs0]: growright, unknaszero,bits,nopercent
YLegend[cis1601_trfs0]: Bits per second
LegendI[cis1601_trfs0]: In: 
LegendO[cis1601_trfs0]: Out: 
50pts for 1 question, 100pts for 2.
Question by:hpchong7
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 79

Expert Comment

ID: 7981237
G'day hpchong7

Your surge in traffic is because the daemon died. When that happens, MRTG takes the traffic counters at the last poll, then creates the average over the next 30 minutes which does not change so you see a long flat line. That line could be high, or it could be low depending on the last poll. You can always just edit the log file to fix the graph. I put a UPS on my system that polls.

A loopback interface is always up. Use the Ethernet interface IP to monitor. I'm assuming you want to monitor the monitor machine from another one?


Author Comment

ID: 7991215
Of course I know, but I did not want to edit the log file by hand, any auto-mechanism to get around/solve this? Thanks!

LVL 79

Accepted Solution

lrmoore earned 200 total points
ID: 7996475
No way around it that I know of...
I suppose you could write some custom script that would run whenever the system comes up to automatically edit the log file..

Author Comment

ID: 8001751
Anyway thank you very much.

Featured Post

Four New Appliances. Same Industry-leading Speeds.

But don't take it from us.  The Firebox M370 is Miercom tested and Miercom approved, outperforming its competitors for stateless and stateful traffic throughput scenarios.  Learn more about the M370, M470, M570 and M670 and find the right solution for your organization today!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question