Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

MRTG questions

Posted on 2003-02-19
4
Medium Priority
?
391 Views
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>
Target[cis1601_trfs0]:.1.3.6.1.2.1.2.2.1.10.2&.1.3.6.1.2.1.2.2.1.16.2:public@10.0.0.1
MaxBytes[cis1601_trfs0]: 193000
WithPeak[cis1601_trfs0]: ymw
Options[cis1601_trfs0]: growright, unknaszero,bits,nopercent
YLegend[cis1601_trfs0]: Bits per second
ShortLegend[cis1601_trfs0]:
Legend1[cis1601_trfs0]:
Legend2[cis1601_trfs0]:
Legend3[cis1601_trfs0]:
Legend4[cis1601_trfs0]:
LegendI[cis1601_trfs0]: In: 
LegendO[cis1601_trfs0]: Out: 
 
50pts for 1 question, 100pts for 2.
0
Comment
Question by:hpchong7
  • 2
  • 2
4 Comments
 
LVL 79

Expert Comment

by:lrmoore
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?

Cheers!
0
 
LVL 2

Author Comment

by:hpchong7
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!

0
 
LVL 79

Accepted Solution

by:
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..
0
 
LVL 2

Author Comment

by:hpchong7
ID: 8001751
Anyway thank you very much.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

In this article, WatchGuard's Director of Security Strategy and Research Teri Radichel, takes a look at insider threats, the risk they can pose to your organization, and the best ways to defend against them.
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
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…

564 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