|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
rpn questionHi folks, I have the following RPN statement, seems to work but I'm
requesting clarification on its output. CDEF:apacherpn=apache_bytes,20000,GT,apache_bytes,10,/,apache_bytes,IF If apache_bytes is say, 30000, is the output then 3000 or 21000? My aim was to have all values above 20000 be divided by 10, but the 20000 floor remain 20000. So 30000 would be displayed as 21000. Is this even possible? Or would 30000 be displayed as 3000? -- aRDy Music and Rick Dicaire present: http://www.ardynet.com http://www.ardynet.com:9000/ardymusic.ogg.m3u _______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
|
|
Re: rpn questionOn Sat, May 10, 2008 at 01:22:53PM -0400, R Dicaire wrote:
> Hi folks, I have the following RPN statement, seems to work but I'm > requesting clarification on its output. > > CDEF:apacherpn=apache_bytes,20000,GT,apache_bytes,10,/,apache_bytes,IF if apache_bytes > 20000 return apache_bytes/10 else return apache_bytes > If apache_bytes is say, 30000, is the output then 3000 or 21000? 3000 > My aim was to have all values above 20000 be divided by 10, but the > 20000 floor remain 20000. You _are_ dividing all values above 20000 by 10. But it seems to me you want to divide only the portion above 20000 by 10 and add this to 20000. 1: Why ? 2: that requires a more complex formula. > So 30000 would be displayed as 21000. Is this even possible? Sure. if (x>20000) then return (x-20000)/10+20000 else return x and then transform this into RPN. -- Alex van den Bogaerdt http://www.vandenbogaerdt.nl/rrdtool/ _______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
|
|
Re: rpn questionOn Sat, May 10, 2008 at 5:39 PM, Alex van den Bogaerdt
<alex@...> wrote: > You _are_ dividing all values above 20000 by 10. But it seems to > me you want to divide only the portion above 20000 by 10 and add > this to 20000. > > 1: Why ? The rest of the data this particular graph displays doesnt vary much, so when apache_bytes gets to a certain point, the other data isn't very legible. > if (x>20000) then return (x-20000)/10+20000 > else return x Thank you, I'll try and figure this out. -- aRDy Music and Rick Dicaire present: http://www.ardynet.com http://www.ardynet.com:9000/ardymusic.ogg.m3u _______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
|
|
Re: rpn questionOn Sat, May 10, 2008 at 05:53:57PM -0400, R Dicaire wrote:
> On Sat, May 10, 2008 at 5:39 PM, Alex van den Bogaerdt > <alex@...> wrote: > > You _are_ dividing all values above 20000 by 10. But it seems to > > me you want to divide only the portion above 20000 by 10 and add > > this to 20000. > > > > 1: Why ? > > The rest of the data this particular graph displays doesnt vary much, > so when apache_bytes gets to a certain point, the other data isn't > very legible. Have you looked at a logarithmic scale ? It may be something you could use. > > if (x>20000) then return (x-20000)/10+20000 > > else return x > > Thank you, I'll try and figure this out. if x>20000 then: x,20000,IF return (x-20000)/10+20000: x,20000,-,10,/,20000,+ else return x: x concatenate: CDEF:y=x,20000,IF,x,20000,-,10,/,20000,+,x you substitute names for x and y. Also: it is late, it's warm, I'm tired and I did not verify that this does indeed produce what you need. So: debug! Alternatively: if you are not interested in anything above 20000, why not set an upper limit of 20000 and set option rigid ? HTH -- Alex van den Bogaerdt http://www.vandenbogaerdt.nl/rrdtool/ _______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
|
|
Re: rpn questionOn Sat, May 10, 2008 at 6:07 PM, Alex van den Bogaerdt
<alex@...> wrote: > Have you looked at a logarithmic scale ? It may be something you > could use? I will look at this too. > concatenate: CDEF:y=x,20000,IF,x,20000,-,10,/,20000,+,x > Also: it is late, it's warm, I'm tired and I did not verify that > this does indeed produce what you need. So: debug! I debugged and got: CDEF:apacherpn=apache_bytes,20000,GT,apache_bytes,20000,-,10,/,20000,+,apache_bytes,IF It looks right so far in the graph, I will monitor thisa closely for a while to make sure the graphed values reflect what I expect. Thanks -- aRDy Music and Rick Dicaire present: http://www.ardynet.com http://www.ardynet.com:9000/ardymusic.ogg.m3u _______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
|
|
RRD errorsI am trying to configure LARRD and I see the following errors: Any help? Can't locate loadable object for module RRDs in @INC (@INC contains: /usr/local/ rrdtool/lib/perl /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /u sr/perl5/site_perl/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl 5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_pe rl/5.8.4 /usr/perl5/vendor_perl .) at /usr/local/larrd/la-larrd.pl line 37 Compilation failed in require at /usr/local/larrd/la-larrd.pl line 37. BEGIN failed--compilation aborted at /usr/local/larrd/la-larrd.pl line 37. Can't locate loadable object for module RRDs in @INC (@INC contains: /usr/local/ rrdtool-1.2.19/lib/perl /usr/local/larrd/lib/LARRD /usr/local/rrdtool/lib/perl/ /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_per l/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/ perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/per l5/vendor_perl .) at /usr/local/larrd/disk-larrd.pl line 55 Compilation failed in require at /usr/local/larrd/disk-larrd.pl line 55. BEGIN failed--compilation aborted at /usr/local/larrd/disk-larrd.pl line 55. Can't locate loadable object for module RRDs in @INC (@INC contains: /usr/local/ rrdtool-1.2.19/lib/perl /usr/local/larrd/lib/LARRD /usr/local/rrdtool/lib/perl/ /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_per l/5.8.4/sun4-solaris-64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/ perl5/vendor_perl/5.8.4/sun4-solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/per l5/vendor_perl .) at /usr/local/larrd/bbnet-larrd.pl line 62 Compilation failed in require at /usr/local/larrd/bbnet-larrd.pl line 62. BEGIN failed--compilation aborted at /usr/local/larrd/bbnet-larrd.pl line 62. "LARRDOUT" 24360 lines, 4829080 characters
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. _______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
|
|
Re: RRD errorsYou’ve not installed the RRDs perl
module correctly. Looks like you only have the RRDs.pm file and not the auto/RRDs/RRDs.so
in there, or else the permissions on the file are wrong. Steve I am trying to configure LARRD and I see the following
errors: Any help? Can't locate loadable object for module RRDs in @INC (@INC contains:
/usr/local/ _______________________________________________ rrd-users mailing list rrd-users@... https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users |
| Free Forum Powered by Nabble | Forum Help |