[rrd-users] rrd-users Digest, Vol 80, Issue 6

John huysing jhuysing at gmail.com
Tue Aug 13 10:15:02 CEST 2013


Stveve

Don't have a lot of time at the moment. might get around to doing a bit on
the weekend.

i have checked the cdef by producing  a graph. That works ok.

push ( @options, 'DEF:CurTotl=' . $database . ':CurTotl:MAX' )
push ( @options, 'CDEF:wrong=CurTotl,UN,10,0,IF' )
push (@options, 'VDEF:Wrong=wrong,MAXIMUN');
push (@options, 'AREA:wrong#009909:MISSING');
push (@options, 'PRINT:Wrong:%5.2lf');
push (@options, 'PRINT:Wrong:%c:strftime');

@Data = RRDs::graph('test.png', at options);

  John


On 12 August 2013 11:23, <rrd-users-request at lists.oetiker.ch> wrote:

> 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: RHEL6 - rrdtool dumping text (Tobi Oetiker)
>    2. Detecting and handling unknown data (John huysing)
>    3. Re: Detecting and handling unknown data (Steve Shipway)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 10 Aug 2013 23:21:47 +0200
> From: Tobi Oetiker <tobi at oetiker.ch>
> Subject: Re: [rrd-users] RHEL6 - rrdtool dumping text
> To: Joe Loiacono <jloiacon at csc.com>
> Cc: "rrd-users at lists.oetiker.ch" <rrd-users at lists.oetiker.ch>,
>         "rrd-users-bounces+jloiacon=csc.com at lists.oetiker.ch"
>         <rrd-users-bounces+jloiacon=csc.com at lists.oetiker.ch>
> Message-ID: <31785470-DBBB-4155-B087-70CF44F0D34A at oetiker.ch>
> Content-Type: text/plain; charset="us-ascii"
>
>
> On 10.08.2013, at 22:30, Joe Loiacono <jloiacon at csc.com> wrote:
>
> > Yes, I've had no problems with it on a previous install. But I built
> that one vs RPM'ing this one (however, that may be irrelevant).
> >
> > flowviewerprime /var/www/cgi-bin/FlowViewer_4.2/Flow_Working 299
> >/opt/rrdtool-1.4.7/bin/rrdtool update
> /var/www/cgi-bin/FlowTracker_Files/FlowTracker_RRDtool/somerville_test.rrd
> 1376163000:6886391
> > prep ds[0]     last_arg 'U'     this_arg '6886391' pdp_new 2038371736.00
> > proc_pdp_age 4 proc_pdp_st 1376162700  occu_pfp_age 0   occu_pdp_st
> 1376163000  int 296.000000  pre_int 296.000000      post_int 0.000000
> > PDP UPD ds[0]  elapsed_pdp_st 1 pdp_temp 6886391.00     new_prep
> 0.00     new_unkn_sec     0
> > schedule CDP_val update, RRA 2 DS 0, DNAN
> > Initialize CDP_val for RRA 2 DS 0: 6886391.00
> > schedule CDP_val update, RRA 3 DS 0, DNAN
> > Initialize CDP_val for RRA 3 DS 0: 6886391.00
> > schedule CDP_val update, RRA 6 DS 0, DNAN
> > Initialize CDP_val for RRA 6 DS 0: 6886391.00
> > schedule CDP_val update, RRA 7 DS 0, DNAN
> > Initialize CDP_val for RRA 7 DS 0: 6886391.00
> >   -- RRA Preseek 2040
> >   -- RRA Postseek 3864
> >   -- RRA WRITE VALUE 6.886391e+06, at 3864 CF:AVERAGE
> >   -- RRA Preseek 3872
> >   -- RRA Postseek 9624
> >   -- RRA WRITE VALUE -nan, at 9624 CF:AVERAGE
> >   -- RRA Preseek 9632
> >   -- RRA Postseek 32224
> >   -- RRA WRITE VALUE 6.886391e+06, at 32224 CF:MAX
> >   -- RRA Preseek 32232
> >   -- RRA Postseek 32992
> >   -- RRA WRITE VALUE -nan, at 32992 CF:MAX
> >
> > Joe
> >
> >
>
>
> maybe you got some debug define set while compiling
>
> in any event, get 1.4.8 ... fewer bugs more fun
>
> cheers tobi
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130810/01666879/attachment-0001.htm
>
> ------------------------------
>
> Message: 2
> Date: Mon, 12 Aug 2013 10:53:10 +1000
> From: John huysing <jhuysing at gmail.com>
> Subject: [rrd-users] Detecting and handling unknown data
> To: rrd-users at lists.oetiker.ch
> Message-ID:
>         <
> CAAWG9zAu2oneyvGZ-2Gt+D8uba6_1b4i67uUB+wJthGTfZ5Feg at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> After look at the CDEF tutorial
>
> http://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html
>
> and reading the section on handling unknown data
>
> I thought I would try this to see if I could detect if had unknown data in
> a rrd, so i could process it differently
>
> If its unknown set the value to 10 else set to 0
>
> CDEF:wrong=currTot,UN,10,0,IF
>
> VDEF:Wrong=wrong,MAXIMUM
>
> VDEF:AWrong=wrong,AVERAGE
>
> PRINT:Wrong:%5.2lf            ----> returns inf
>
> PRINT:AWrong:%5.2lf           ----> returns a value
>
> The 2nd problem is when I try this
> PRINT:AWrong:%c:strftime
>
> I always get the start of unix time ....1970
>
>
> John
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130812/42284927/attachment-0001.htm
>
> ------------------------------
>
> Message: 3
> Date: Mon, 12 Aug 2013 01:22:34 +0000
> From: Steve Shipway <s.shipway at auckland.ac.nz>
> Subject: Re: [rrd-users] Detecting and handling unknown data
> To: 'John huysing' <jhuysing at gmail.com>,
>         "'rrd-users at lists.oetiker.ch'"  <rrd-users at lists.oetiker.ch>
> Message-ID:
>         <
> 7294716191A1E142B80615ED2C633BCA683DB1AD at uxcn10-2.UoA.auckland.ac.nz>
> Content-Type: text/plain; charset="gb2312"
>
> The second issue, where AWrong:%c:strftime gives the epoch (IE, time 0) is
> because the AVERAGE operator in a VDEF does not set the time component ?
> after all, what should it set it to?  The MAX and MIN operators set the
> time
> component to the time of the peak in question, but AVG doesn?t have any
> specific point in time, hence it is not set (or rather, it is set to zero).
>
>
>
> For the first issue, I?m not sure why this should be; you should be getting
> ?10? or ?0?, if I read it correctly.  It might help to give more details
> ? the DEF statement, the rrdinfo for the RRD file in question, and the
> version of RRDtool you?re using.
>
>
>
> Steve
>
>
>
>   _____
>
> Steve Shipway
>
> ITS Unix Services Design Lead
>
> University of Auckland, New Zealand
>
> Floor 1, 58 Symonds Street, Auckland
>
> Phone: +64 (0)9 3737599 ext 86487
>
> DDI: +64 (0)9 923 6487
>
> Mobile: +64 (0)21 753 189
>
> Email:  <mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz
>
> P Please consider the environment before printing this e-mail : ??????
> ???????????
>
>
>
> From: rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch
> [mailto:rrd-users-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On
> Behalf Of John huysing
> Sent: Monday, 12 August 2013 12:53 p.m.
> To: rrd-users at lists.oetiker.ch
> Subject: [rrd-users] Detecting and handling unknown data
>
>
>
> After look at the CDEF tutorial
>
> http://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html
>
> and reading the section on handling unknown data
>
> I thought I would try this to see if I could detect if had unknown data in
> a
> rrd, so i could process it differently
>
> If its unknown set the value to 10 else set to 0
>
> CDEF:wrong=currTot,UN,10,0,IF
>
>
> VDEF:Wrong=wrong,MAXIMUM
> VDEF:AWrong=wrong,AVERAGE
> PRINT:Wrong:%5.2lf            ----> returns inf
> PRINT:AWrong:%5.2lf           ----> returns a value
>
> The 2nd problem is when I try this
> PRINT:AWrong:%c:strftime
> I always get the start of unix time ....1970
>
>
> John
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130812/8dc5d601/attachment.htm
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: smime.p7s
> Type: application/x-pkcs7-signature
> Size: 5900 bytes
> Desc: not available
> Url :
> http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130812/8dc5d601/attachment.bin
>
> ------------------------------
>
> _______________________________________________
> 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 80, Issue 6
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20130813/681f4ad6/attachment-0001.htm 


More information about the rrd-users mailing list