[mrtg] Re: external data not being logged properly

Brady, Jeff JBrady at midatlantic.aaa.com
Thu Dec 21 21:40:56 MET 2000


ditto here!

I'm using a modified version of Paul Simmonson's scripts
(http://www.wn.com.au/psimmo/) and it works great for gauge options, but not
counter options.  I know the problem has to be related to the low data
levels (less than 300 in a 5 minute span).  I switched to rrd in order to
capture the data, and the logs are populating, here is a sample of an rrd
dump:

			<!-- 2000-12-21 13:40:00 Eastern Standard Time -->
<row><v> 1.9686666667e-001 </v><v> 1.9686666667e-001 </v></row>
			<!-- 2000-12-21 13:45:00 Eastern Standard Time -->
<row><v> 2.2636666667e-001 </v><v> 2.2636666667e-001 </v></row>
			<!-- 2000-12-21 13:50:00 Eastern Standard Time -->
<row><v> 2.3907729790e-001 </v><v> 2.3907729790e-001 </v></row>
			<!-- 2000-12-21 13:55:00 Eastern Standard Time -->
<row><v> 3.5297755160e-001 </v><v> 3.5297755160e-001 </v></row>
			<!-- 2000-12-21 14:00:00 Eastern Standard Time -->
<row><v> 2.3377770864e-001 </v><v> 2.3377770864e-001 </v></row>
			<!-- 2000-12-21 14:05:00 Eastern Standard Time -->
<row><v> 1.7027685493e-001 </v><v> 1.7027685493e-001 </v></row>
		
as you can see data is being captured, but it is less that 1 unit per
second.  Is there any way to tell MRTG to continue to subtract the
difference but NOT calculate per second or per minute values?  i.e. if at
14:30 COUNTER - OLDCOUNTER = 32, plot a graph point at 32 for the time point
of 14:30, no division or time calculation.

Any ideas?




-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]On
Behalf Of lucas at omsoft.com
Sent: Thursday, December 21, 2000 3:18 PM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] external data not being logged properly



I am using mrtg 2.9.1 on a Win2000 Server system, and I am creating my own
mrtg 
data for several graphs. Some of the graphs use values that are "status"
like 
and work fine with the "gauge" option. However, for graphs that use ever-
incrementing counters don't work properly. For example, I am monitoring 
requests to my web site my counting the number of lines in an access log.
Here 
is the data file:

---
130762
0
12:00:02   Up 6 days 11:19:56   0 connections
[machine name]

---

My config looks like this:

---
Target[dhyana_http]:`type d:\temp\dhyana_httprequests`
MaxBytes[dhyana_http]: 100
Options[dhyana_http]: integer, nopercent, growright
AbsMax[dhyana_http]: 1000
Unscaled[dhyana_http]: ymw
YLegend[dhyana_http]: HTTP Requests
ShortLegend[dhyana_http]: Requests
Legend1[dhyana_http]: HTTP Requests
Legend2[dhyana_http]:
...
---

This produces a log file which has the first line correct, but the following

lines are all zeros. Is there a bug related to this or am I using it 
incorrectly?

Lucas

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list