[rrd-users] rrd-users Digest, Vol 21, Issue 15

Martin Lietz flieger.martin at web.de
Mon Sep 29 15:51:12 CEST 2008


Hello Tobias,
I am trying to make a smokeping in portugues and i have still problems with the accents(úéáõã) and also with Spaces in  the names of files in the config file. Everytime i got a message like "cant find the table defintion" or something like that. I found only one short example how to display the html but even this don`t work because in the example was used a .htaccess file which i donŽt have. I think that is the same problem like with umlaute in german, so that you still have a solution and i only was not able to find it. Perhaps you can give me a small hint.
kind regards 
Martin
> -----Ursprüngliche Nachricht-----
> Von: <rrd-users-request at lists.oetiker.ch>
> Gesendet: 29.09.08 06:11:11
> An: rrd-users at lists.oetiker.ch
> Betreff: rrd-users Digest, Vol 21, Issue 15


> Send rrd-users mailing list submissions to
> 	rrd-users at lists.oetiker.ch
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
> or, via email, send a message with subject or body 'help' to
> 	rrd-users-request at lists.oetiker.ch
> 
> You can reach the person managing the list at
> 	rrd-users-owner at lists.oetiker.ch
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of rrd-users digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: Problems graphing (Joshua Keroes)
>    2. Re: Problems graphing (Laura McCord)
>    3.  How to parse a log into a rrd graph? (digdug)
>    4. Re: Bug in rrdtool xport? (Tobias Oetiker)
>    5. Re: How to parse a log into a rrd graph? (Andy Riebs)
>    6. Re: RRDtool 1.3.2 released (MAJOR BUGFIX!) (Tobias Oetiker)
>    7. MRTG-RRD anomaly!! (Firdous Saleheen)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Fri, 26 Sep 2008 13:36:12 -0700
> From: "Joshua Keroes" <joshua at keroes.com>
> Subject: Re: [rrd-users] Problems graphing
> To: "Laura McCord" <mccordl at southwestern.edu>
> Cc: rrd-users at lists.oetiker.ch
> Message-ID:
> 	<c67b68200809261336i60c81be6u177c5112e9487087 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> On Fri, Sep 26, 2008 at 1:31 PM, Joshua Keroes <joshua at keroes.com> wrote:
> 
> >       # Start on Sep 1st
> >>       my $start_t = "1220227200";
> >
> >
> > # This is really Aug 31
> >
> >
> Hmm...
> 
> jkeroes at localhost:~ $ perl -le 'print scalar localtime(1220227200)'
> Sun Aug 31 17:00:00 2008
> 
> It occurs to me that this is probably right once we account for timezones.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20080926/80f7791e/attachment-0001.html 
> 
> ------------------------------
> 
> Message: 2
> Date: Fri, 26 Sep 2008 15:34:02 -0500
> From: Laura McCord <mccordl at southwestern.edu>
> Subject: Re: [rrd-users] Problems graphing
> To: Joshua Keroes <joshua at keroes.com>
> Cc: rrd-users at lists.oetiker.ch
> Message-ID: <48DD473A.4030305 at southwestern.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> I think you are right.
> 
> It is Aug 31st instead of Sept. 1st. I think I needed 1220245200 for 
> Sept 1st. I looked it up using a date/epoch converter. *
> 
> *-Laura
> 
> Joshua Keroes wrote:
> >
> > On Fri, Sep 26, 2008 at 1:31 PM, Joshua Keroes <joshua at keroes.com 
> > <mailto:joshua at keroes.com>> wrote:
> >
> >               # Start on Sep 1st
> >               my $start_t = "1220227200";
> >
> >
> >     # This is really Aug 31 
> >
> >
> > Hmm...
> >
> > jkeroes at localhost:~ $ perl -le 'print scalar localtime(1220227200)'
> > Sun Aug 31 17:00:00 2008
> >
> > It occurs to me that this is probably right once we account for timezones.
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Thu, 25 Sep 2008 23:30:03 -0700 (PDT)
> From: digdug <oliver.geisen at kreisbote.de>
> Subject: [rrd-users]  How to parse a log into a rrd graph?
> To: rrd-users at lists.oetiker.ch
> Message-ID: <1222410603326-1120160.post at n2.nabble.com>
> Content-Type: text/plain; charset=us-ascii
> 
> 
> Hello,
> 
> i have some logfiles, filled with accounting messages from my DSL router and
> want RRD to build a nice graph of the inbound and outbound traffic.
> The messages occures asynchronously, about every few seconds. They contain
> infos about how many bytes have bin received and send over the wire to that
> time. So the cumulated value over a given time period gives the ammount of
> data send/received in total.
> 
> Now, i have written a parse for that logs getting:
> TIMESTAMP, BYTES-SEND, BYTES-RECEIVED
> 
> Well, i feed that into an RRD but the resulting graph was frustrating.
> Instead of a nice shape i get only spikes in the graph, really ugly and
> unuseable. What do i do wrong?
> 
> -- 
> View this message in context: http://n2.nabble.com/How-to-parse-a-log-into-a-rrd-graph--tp1120160p1120160.html
> Sent from the RRDtool Users Mailinglist mailing list archive at Nabble.com.
> 
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Sat, 27 Sep 2008 13:49:07 +0200 (CEST)
> From: Tobias Oetiker <tobi+rrdtool at oetiker.ch>
> Subject: Re: [rrd-users] Bug in rrdtool xport?
> To: Peter Valdemar M?rch (Lists) 	<4ux6as402 at sneakemail.com>,
> 	rrd-users at lists.oetiker.ch, rrd-developers at lists.oetiker.ch
> Message-ID: <alpine.DEB.1.99.0809271345270.25576 at sebohet.brgvxre.pu>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi Peter,
> 
> indeed rrdxport was/is totally broken for exports where the
> different datasources do not use the same step size ...
> 
> http://oss.oetiker.ch/rrdtool-trac/changeset/1529
> 
> fixes this for 1.2.x, 1.3.x and trunk.
> 
> thanks for the test example, and also for reminding me that your
> report did go unannswered.
> 
> Interesting that such broken code could survive for so long, I
> guess not to many people use xport ...
> 
> cheers
> tobi
> 
> 
> 
> Today Tobias Oetiker wrote:
> 
> > Peter,
> >
> > indeed, there seems something odd going, I guess I have to finally
> > take a look at that xport code :-(
> >
> > cheers
> > tobi
> > Yesterday "Peter Valdemar M?rch (Lists)" wrote:
> >
> > > Hi all,
> > >
> > > On Sept 9 I posted what I think is a bug here, and have gotten no
> > > responses so far. Was there something wrong with my report?
> > >
> > > http://thread.gmane.org/gmane.comp.db.rrdtool.user/14609
> > >
> > > I provided a simple test case where "rrdtool xport" cannot correctly
> > > export data from two different rrd files that have different step
> > > values. "rrdtool graph" works fine with the same rrd files and shows
> > > correct data. More and newer observations on the same issue below.
> > >
> > > Hoping for a response,
> > >
> > > Peter
> > >
> > > ----
> > >
> > > In the meantime, I've discovered that I don't even have to have a CDEF
> > > composed of DS'es from two different rrd files for the output to be
> > > wrong. Just using the DEF terms for ns3 and ns4 in the rrd xport line
> > > below also produces incorrect output:
> > > rrdtool xport --start 1220625000 --end 1220629800 \
> > > DEF:ns3=snmp2-0.rrd:ns3:AVERAGE XPORT:ns3:ns3 \
> > > DEF:ns4=snmp3-0.rrd:ns4:AVERAGE XPORT:ns4:ns4
> > >
> > > ns4's value in the output varies every 5 minute row, but snmp3-0.rrd
> > > containing ns4 has a step of 900 ( == 15 min ), so that is clearly
> > > wrong, isn't it? Here are the first rows, with <row></row> taken out so
> > > it doesn't wrap in the mail:
> > >
> > > <t>1220625300</t><v>6.1567155556e+02</v><v>2.6935130000e+03</v>
> > > <t>1220625600</t><v>6.1546555556e+02</v><v>2.6935130000e+03</v>
> > > <t>1220625900</t><v>6.7551154122e+02</v><v>NaN</v>
> > > <t>1220626200</t><v>3.9705685194e+02</v><v>1.2931680988e+03</v>
> > > <t>1220626500</t><v>3.2386227350e+02</v><v>3.6926825679e+02</v>
> > > <t>1220626800</t><v>2.0573415556e+02</v><v>NaN</v>
> > > <t>1220627100</t><v>1.0843768889e+02</v><v>0.0000000000e+00</v>
> > >
> > > Take out the DEF and XPORT terms for ns3, and ns4 is shown with exactly
> > > the same values, but now 15 minutes apart. Seems rrdtool xport is taking
> > > one value pr. <row> regardless of step, which is wrong:
> > >
> > > <t>1220625900</t><v>2.6935130000e+03</v>
> > > <t>1220626800</t><v>2.6935130000e+03</v>
> > > <t>1220627700</t><v>NaN</v>
> > > <t>1220628600</t><v>1.2931680988e+03</v>
> > > <t>1220629500</t><v>3.6926825679e+02</v>
> > > <t>1220630400</t><v>NaN</v>
> > >
> > > Also, if I leave in the DEF for ns3, but remove the XPORT, I get the
> > > incorrect output. So:
> > >
> > > Correct output:
> > > rrdtool xport --start 1220625000 --end 1220629800 \
> > > DEF:ns4=snmp3-0.rrd:ns4:AVERAGE \
> > > XPORT:ns4:ns4
> > >
> > > Incorrect output:
> > > rrdtool xport --start 1220625000 --end 1220629800 \
> > > DEF:ns3=snmp2-0.rrd:ns3:AVERAGE \
> > > DEF:ns4=snmp3-0.rrd:ns4:AVERAGE \
> > > XPORT:ns4:ns4
> > >
> > > Also strange, is that these two give different output:
> > >
> > > rrdtool xport --start 1220625000 --end 1220629800 \
> > > DEF:ns3=snmp2-0.rrd:ns3:AVERAGE \
> > > DEF:ns4=snmp3-0.rrd:ns4:AVERAGE \
> > > XPORT:ns3:ns3 \
> > > XPORT:ns4:ns4
> > >
> > > rrdtool xport --start 1220625000 --end 1220629800 \
> > > DEF:ns4=snmp3-0.rrd:ns4:AVERAGE \
> > > DEF:ns3=snmp2-0.rrd:ns3:AVERAGE \
> > > XPORT:ns3:ns3 \
> > > XPORT:ns4:ns4
> > >
> > > (I swapped the sequence of the DEFs)
> > >
> > > Looks like the step is calculated from the first DEF, whatever that
> > > happens to be, and each row uses one value, regardless of step. "rrdtool
> > > graph" seems smarter than that.
> > >
> > > Hope someone else can see that this is wrong too!
> > >
> > > Peter
> > >
> > > Peter Valdemar M?rch (Lists) 4ux6as402-at-sneakemail.com |Lists| wrote:
> > > > I'm have two rrd files with different steps. I try to "see" three
> > > > values: a DEF from each of these files, and a CDEF which is an average
> > > > of each of them. It seems rrdtool graph does it "right", but rrdtool
> > > > xport does it "wrong". Do you agree?
> > > >
> > > > In my reproducing script
> > > > http://www.morch.com/misc/rrdxport_bug/REPRODUCE.sh.txt
> > > > there are similar lines for graph and xport. Here graph:
> > > >
> > > > rrdtool graph --start 1220625000 --end 1220629800 ok.png \
> > > > DEF:ns3=snmp2-0.rrd:ns3:AVERAGE 'LINE1:ns3#0000ff:ns3' \
> > > > DEF:ns4=snmp3-0.rrd:ns4:AVERAGE 'LINE1:ns4#ff0000:ns4' \
> > > > CDEF:avg=ns3,ns4,+,2,/          'LINE2:avg#00ff00:avg'
> > > >
> > > > ( Both the required RRD files + samle output are in:
> > > > http://www.morch.com/misc/rrdxport_bug/ )
> > > >
> > > > rrdtool graph shows these values "correctly":
> > > > http://www.morch.com/misc/rrdxport_bug/ok.png
> > > >
> > > > But as far as I can tell, rrdtool xport does not:
> > > > http://www.morch.com/misc/rrdxport_bug/wrong.xml
> > > >
> > > > E.g. I would expect that exactly if either of the components (either of
> > > > the two DEFs) are NaN, so would the average, but that seems not to be
> > > > the case. Here are two example rows from wrong.xml:
> > > >
> > > > <row><t>1220627400</t><v>1.3481197778e+02</v><v>3.6073928446e-313</v><v>NaN</v></row>
> > > > <row><t>1220626800</t><v>2.0573415556e+02</v><v>NaN</v><v>1.4496235778e+03</v></row>
> > > >
> > > > Also, the value of ns4 in the xport output is wrong when not NaN. I
> > > > would have expected, that
> > > > http://www.morch.com/misc/rrdxport_bug/wrong.xml
> > > > only contain values of ns4 that are also present in
> > > > http://www.morch.com/misc/rrdxport_bug/good.xml which agrees with the
> > > > values in ok.png above.
> > > >
> > > > It sure looks to me like ok.png and wrong.xml disagree on what to show.
> > > > And that ok.png/good.xml are "right". Do you agree?
> > > >
> > > > If this is a bug, should I file it in trac? I seem not to be able to
> > > > create new bugs or register, only query existing bugs... Please let me
> > > > know how if you want me to file a bug report.
> > > >
> > > > Peter
> > >
> > >
> > >
> >
> >
> 
> -- 
> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
> http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
> 
> ------------------------------
> 
> Message: 5
> Date: Sat, 27 Sep 2008 10:09:21 -0400
> From: Andy Riebs <andy.riebs at hp.com>
> Subject: Re: [rrd-users] How to parse a log into a rrd graph?
> To: rrd-users at lists.oetiker.ch
> Cc: digdug <oliver.geisen at kreisbote.de>
> Message-ID: <200809271009.22112.andy.riebs at hp.com>
> Content-Type: text/plain;  charset="iso-8859-1"
> 
> <re-sending from the correct address>
> 
> Partly, I suppose it depends on your definition of "nice shape" :)
> 
> Please send some information about your RRD definitions, and the 
> commands that  you are using to
> 
> a. Store the data
> b. Generate the graph
> 
> /andy
> 
> On Friday 26 September 2008, digdug wrote:
> > Hello,
> >
> > i have some logfiles, filled with accounting messages from my DSL
> > router and want RRD to build a nice graph of the inbound and outbound
> > traffic. The messages occures asynchronously, about every few
> > seconds. They contain infos about how many bytes have bin received
> > and send over the wire to that time. So the cumulated value over a
> > given time period gives the ammount of data send/received in total.
> >
> > Now, i have written a parse for that logs getting:
> > TIMESTAMP, BYTES-SEND, BYTES-RECEIVED
> >
> > Well, i feed that into an RRD but the resulting graph was
> > frustrating. Instead of a nice shape i get only spikes in the graph,
> > really ugly and unuseable. What do i do wrong?
> >
> > --
> > View this message in context:
> > http://n2.nabble.com/How-to-parse-a-log-into-a-rrd-graph--tp1120160p1
> >120160.html Sent from the RRDtool Users Mailinglist mailing list
> > archive at Nabble.com.
> >
> > _______________________________________________
> > rrd-users mailing list
> > rrd-users at lists.oetiker.ch
> > https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
> 
> 
> 
> -- 
> Andy Riebs
> (w) +1.603.884.1521? ? andy.riebs at hp.com
> (h) andy at candooz.com
> My opinions are not necessarily those of HP
> 
> 
> 
> ------------------------------
> 
> Message: 6
> Date: Sun, 28 Sep 2008 21:15:44 +0200 (CEST)
> From: Tobias Oetiker <tobi at oetiker.ch>
> Subject: Re: [rrd-users] RRDtool 1.3.2 released (MAJOR BUGFIX!)
> To: Bernard Li <bernard at vanhpc.org>
> Cc: rrd-users at lists.oetiker.ch
> Message-ID: <alpine.DEB.1.99.0809282115320.10549 at sebohet.brgvxre.pu>
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> 
> Hi Bernard,
> 
> thanks
> tobi
> 
> Friday Bernard Li wrote:
> 
> > Hi Tobias:
> >
> > On Thu, Sep 25, 2008 at 10:00 PM, Tobias Oetiker <tobi at oetiker.ch> wrote:
> >
> > > if you tell me what needs changeing I can build this into the
> > > release process ... I thought I have already been doing that with
> > > the version number, but maybe it fails (I do not use rpms myself,
> > > so I am living in a state of blissful ignorance).
> >
> > Attached is a patch against the spec file shipped with
> > rrdtool-1.3.3.spec which will make it buildable (at least it works on
> > my CentOS 4.x system).
> >
> > If you have any questions, please feel free to let me know.
> >
> > Cheers,
> >
> > Bernard
> >
> 
> -- 
> Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
> http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
> 
> 
> 
> ------------------------------
> 
> Message: 7
> Date: Mon, 29 Sep 2008 10:09:32 +0600
> From: "Firdous Saleheen" <saleheen.firdous at mango.com.bd>
> Subject: [rrd-users] MRTG-RRD anomaly!!
> To: <rrd-users at lists.oetiker.ch>, <mrtg at lists.oetiker.ch>
> Cc: imtiaz.rahi at mango.com.bd, monjurul.hasan at mango.com.bd
> Message-ID: <009601c921e9$30a86a50$91f93ef0$@firdous at mango.com.bd>
> Content-Type: text/plain; charset="us-ascii"
> 
> Hi,
> 
> We have created MRTG(with RRD support) configuration for two interfaces and
> one for the aggregation of those two interfaces.
> 
> MRTG of two interfaces are working well but the aggregation graph sometimes
> is showing wrong graph. It seems it is just forgetting to sum up the graphs.
> 
>  
> 
> i.e. 
> 
> interface 1  current in: 64.93Mb   out:18.04Mb
> 
> interface 2 current in:59.33 Mb  out:3.12Mb
> 
> int1+int2  current in :11.32 Mb    out:  21.17Mb
> 
>  
> 
> Interestingly, only IN traffic of aggregation is affected, not OUT traffic.
> 
>  
> 
> The configuration files are as follows:
> 
>  
> 
> HtmlDir: /var/www/mrtg
> 
> ImageDir: /var/www/mrtg
> 
> LogDir: /var/lib/mrtg
> 
> ThreshDir: /var/lib/mrtg
> 
>  
> 
> EnableIPv6: no
> 
> Options[]:growright,bits
> 
> LogFormat:rrdtool
> 
>  
> 
> #Interface 1
> 
>  
> 
> Title[s]: S Traffic Analysis
> 
> Target[s]: 29:public at 192.168.1.1
> 
> setENV[s]:MRTG_INT_IP="202.18.133.34" MRTG_INT__DESCR="POS 0/0/2/0"
> 
> MaxBytes[s]: 2000000000
> 
>  
> 
> #Interface2
> 
>  
> 
> Title[t]: T Traffic Analysis
> 
> Target[t]: 34:public at 192.168.1.1
> 
> setENV[t]:MRTG_INT_IP="203.22.98.46" MRTG_INT__DESCR="POS 0/0/2/1"
> 
> MaxBytes[t]: 2000000000
> 
>  
> 
> #Interface1+interface 2
> 
>  
> 
> Title[submarine]: SUBMARINE Traffic Analysis
> 
> Target[submarine]: 29:public at 192.168.1.1 + 34:public at 192.168.1.1
> 
> setENV[submarine]:MRTG_INT_IP="" MRTG_INT__DESCR=""
> 
> MaxBytes1[submarine]: 40000000000
> 
> MaxBytes2[submarine]: 40000000000
> 
>  
> 
> There are 3 separate config files.
> 
> We have generated log files using  - -logging and - - debug command. - -
> debug command is with "log,base,snpo"  parameters and found no error.
> 
>  
> 
> Have anyone faced this problem?
> 
>  
> 
> Please advise.
> 
>  
> 
>  
> 
> Thanks and regards,
> 
>  
> 
> Firdous Saleheen
> 
> Engineer
> 
> Mango Teleservices Limited
> 
> 82,Mohakhali C/A,(12th floor),
> 
> Dhaka-1212.
> 
> E-mail - saleheen.firdous at mango.com.bd
> 
> Telephone- +880 37 71800500, +880 37 71800501
> 
> Cell- +8801730068832
> 
>  
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20080929/afb86537/attachment.html 
> 
> ------------------------------
> 
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
> 
> 
> End of rrd-users Digest, Vol 21, Issue 15
> *****************************************
> 


_________________________________________________________________________
In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! 
Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114



More information about the rrd-users mailing list