Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 07:19
    DanielTimLee starred oetiker/rrdtool-1.x
  • Jan 28 2019 20:24
    c72578 opened #950
  • Jan 28 2019 10:43

    oetiker on master

    Fix _errno inconsistent dll lin… (compare)

  • Jan 28 2019 10:43
    oetiker closed #949
  • Jan 28 2019 09:29
    c72578 commented #949
  • Jan 27 2019 00:12
    c72578 opened #949
  • Jan 25 2019 14:25
    c72578 opened #948
  • Jan 25 2019 12:50
    oetiker commented #947
  • Jan 25 2019 12:50

    oetiker on master

    Fix rc compiler redefinition wa… (compare)

  • Jan 25 2019 12:50
    oetiker closed #947
  • Jan 25 2019 10:11
    c72578 opened #947
  • Jan 25 2019 09:59

    oetiker on master

    Initialize local variable junk … (compare)

  • Jan 25 2019 09:59
    oetiker closed #946
  • Jan 24 2019 16:46
    c72578 opened #946
  • Jan 24 2019 10:52

    oetiker on master

    Include winsdkver.h for _WIN32_… (compare)

  • Jan 24 2019 10:52
    oetiker closed #945
  • Jan 24 2019 10:52
    oetiker commented #945
  • Jan 24 2019 09:05
    loose11 starred oetiker/rrdtool-1.x
  • Jan 23 2019 10:48
    wukuan405 starred oetiker/rrdtool-1.x
  • Jan 22 2019 15:14
ImagineZA
@ZaImagine_twitter
@oetiker
ImagineZA
@ZaImagine_twitter
I figured it out with the Wizard, thanks
Tobias Oetiker
@oetiker
:+1:
justforgitterim
@justforgitterim
Hi, can somebody help a bloody amateur? I'm trying to plot a multiline-graph with rrd tool and having layer8 issue. Single lines are no problem, but if i try it with two or more line statement it just prints the last of them. I tried google, but seems i'm asking the wrong questions.
Tobias Oetiker
@oetiker
just have multiple LINE commands ...
elias montenegro
@eliasjavier_twitter
hello
any can explain me how to update rrdtool on centos 7 ?
Fabien Wernli
@faxm0dem
eliasjavier_twitter: what's wrong with yum?
elias montenegro
@eliasjavier_twitter
no ... i work with rrdtool 1.7.1 now... but on my librenms not appear graph on ping stat
Dalfo
@dalfo77
Ciao! If I have a file with step = 1, can I get graph with 60s step? Or it depends on rra[X].pdp_per_row?
$ rrdinfo 49685.rrd
filename = "49685.rrd"
rrd_version = "0003"
step = 1
last_update = 1598260772
header_size = 792
ds[value].index = 0
ds[value].type = "GAUGE"
ds[value].minimal_heartbeat = 3000
ds[value].min = NaN
ds[value].max = NaN
ds[value].last_ds = "1681.000000"
ds[value].value = 0.0000000000e+00
ds[value].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 51841
rra[0].cur_row = 49744
rra[0].pdp_per_row = 300
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = 4.5797600000e+05
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 4321
rra[1].cur_row = 3568
rra[1].pdp_per_row = 3600
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 2.0196050000e+06
rra[1].cdp_prep[0].unknown_datapoints = 0
Tobias Oetiker
@oetiker
as long as there is enough data you can force graphs to have larger steps ... you can define that in the DEF argument of the graph
Dalfo
@dalfo77
Sorry @oetiker , I did not explain myself . The monitor application (Centreon) created and use that rrd file. Even if collect data every minute, it show me graph with 5 minutes interval
dalfo77 @dalfo77 searching for the graph
Dalfo
@dalfo77
C21-LTM-05-Node--Sync-only-varnishqms02-cal.png
How obtain graph with 1 minute interval?
Reading the output of rrdinfo, the interval is "step * rra[0].pdp_per_row", right?
Fabien Wernli
@faxm0dem
dalfo77: IIRC you just ask it that :-)
dalfo77: with -S
Dalfo
@dalfo77
I'm missing something :(
rrdtool graph /tmp/foobar.png -s now-1800s -e now -S 60s -a PNG --title="Test" --vertical-label="value" DEF:test=49685.rrd:value:AVERAGE LINE1:test#ff0000:"value"
foobar.png
Tobias Oetiker
@oetiker
it is not about the collection frequency but about the setup of the rrd file ... if it is setup to store data only every 5 minutes then that is what it will do
Fabien Wernli
@faxm0dem
yes, it's how you set up the RRAs
Dalfo
@dalfo77
Thanks! So now the question is: RRA[0].pdp_per_row can be changed runtime? My spider-sense tell me no...
rrddump && edit XML && rrdrestore ?
Tobias Oetiker
@oetiker
not at runtime .. but if you create a new rrd file with rrdtol 1.7 and newer you can use an existing one to provide data for pre-filling ... in that process you can easily change the resolution
Dalfo
@dalfo77
time to connect to lab and test everything!
Trent Hamilton
@TrentHamiltonnz_twitter
Hi all, sorry for what is probably a dumb question, but it would appear that the graphs that I'm generating get rounded up to 1 decimal place, resulting in valves that jump around jerkily. Any ideas how I can fix this?
10.0.20.22_outputamp.png
Tobias Oetiker
@oetiker
rrdtool does not do that ... it must happen earlier in your data path
Trent Hamilton
@TrentHamiltonnz_twitter
I'm using MRTG with RRDtool backend. The values that it prints as current and maximum both have 2 decimal places, so I'm confused how the data shows up as it does
Steve Shipway
@sshipway
What does your MRTG config look like? Possibly you're retrieving/storing as integer and then using a 0.1 factor to display? Or retrieving an integer and dividing by 10 before storing?
Trent Hamilton
@TrentHamiltonnz_twitter
Hey! Steve. Another NZer. Nice :)
The value is divided by 8 and then by 10
Steve Shipway
@sshipway
I suspect that you're retrieving an integer, which is multiplied by 8 (the 'bits' option) then you divide by 8, then by 10. Resulting in a multiple of 0.1, which is what you're seeing. So you can verify this by checking the content of the RRD (using rrdtool dump).
Yay for NZ, the country of almost-zero covid! Though we're a bit on the fringed of the 'net here. I'm up in AKL, drop me a line if you're in the city.
I'd need to see the MRTG config file to give you a definite answer though
Trent Hamilton
@TrentHamiltonnz_twitter

Interface 20 >> Descr: 'UPS InputFreq' | Name: 'UPS Input' | Ip: '10.0.20.22' | Eth: '00-00-00-00-00-00'

Target[10.0.20.22_inputfreq]: .1.3.6.1.2.1.33.1.3.3.1.2.1&.1.3.6.1.2.1.33.1.3.3.1.2.1:public@10.0.20.22 / 10 / 8
MaxBytes[10.0.20.22_inputfreq]: 100
Options[10.0.20.22_inputfreq]: gauge, nopercent
Title[10.0.20.22_inputfreq]: UPS Input Frequency

rrdtool graph '/var/www/html/mrtggraphs/10.0.20.22_inputfreq.png' --alt-autoscale --alt-y-grid --watermark "$(date '+%T, %a %d %b %Y') Interface: 10.0.20.22_inputfreq" --font WATERMARK:8 --font LEGEND:10:monospace --width '400' --height '100' --start end-1d 'DEF:ds0=/var/www/mrtg/10.0.20.22_inputfreq.rrd:ds0:MAX' 'DEF:ds1=/var/www/mrtg/10.0.20.22_inputfreq.rrd:ds1:MAX' 'CDEF:ds0maxbits=ds0,8,' 'CDEF:ds1maxbits=ds1,8,' 'VDEF:ds0maxbitslast=ds0maxbits,LAST' 'VRULE:ds0maxbitslast#000000' 'VDEF:ds1maxbitslast=ds1maxbits,LAST' 'VRULE:ds1maxbitslast#000000' 'VDEF:ds0maximum=ds0maxbits,MAXIMUM' 'VDEF:ds1maximum=ds1maxbits,MAXIMUM' 'LINE1:ds0maxbits#399bf7' 'LINE1:ds1maxbits#38E864' 'GPRINT:ds0maxbitslast:Current\: %.2lf%s' 'GPRINT:ds0maximum:\tMaximum\: %.2lf%s\l'

That's the MRTG config on the top, then the command I run to generate the graph
rrdtool graph '/var/www/html/mrtggraphs/10.0.20.22_inputfreq.png' --alt-autoscale --alt-y-grid --watermark "$(date '+%T, %a %d %b %Y') Interface: 10.0.20.22_inputfreq" --font WATERMARK:8 --font LEGEND:10:monospace --width '400' --height '100' --start end-1d 'DEF:ds0=/var/www/mrtg/10.0.20.22_inputfreq.rrd:ds0:MAX' 'DEF:ds1=/var/www/mrtg/10.0.20.22_inputfreq.rrd:ds1:MAX' 'CDEF:ds0maxbits=ds0,8,*' 'CDEF:ds1maxbits=ds1,8,*' 'VDEF:ds0maxbitslast=ds0maxbits,LAST' 'VRULE:ds0maxbitslast#000000' 'VDEF:ds1maxbitslast=ds1maxbits,LAST' 'VRULE:ds1maxbitslast#000000' 'VDEF:ds0maximum=ds0maxbits,MAXIMUM' 'VDEF:ds1maximum=ds1maxbits,MAXIMUM' 'LINE1:ds0maxbits#399bf7' 'LINE1:ds1maxbits#38E864' 'GPRINT:ds0maxbitslast:Current\: %.2lf%s' 'GPRINT:ds0maximum:\tMaximum\: %.2lf%s\l'
Steve Shipway
@sshipway
OK, so I suspect the OID is returning an integer. In fact, I seem to recall that MRTG only retrieves integers when using SNMP. You then end up storing a value in 80ths of a unit (due to the '/ 10 / 8' at the end); but in your graph CDEF you are multiplying by 8 and so you will have a value with a resolution of tenths of a unit - which is what you're seeing.
oetiker @oetiker sees @sshipway taking of his holmes cape after a case well solved
Steve Shipway
@sshipway
I just checked, and indeed that value is returned as an integer (representing 1/10ths of a Hz). So, since the source data is in tenths, that's what you're seeing in the graph.
Incidentally, for 'best practice', you should not divide by 80 in the Target line; instead, just divide by 10 to get and store a value in Hz (an SI unit). Use 'bytes' as an Option to prevent your graph from doing the CDEF that multiplies the value by 8. It's generally best to store the values as SI units
@sshipway doffs his deerstalker to @oetiker and slinks back to lurking in the shadows
oetiker @oetiker grinns ... thank you @sshipway !
Trent Hamilton
@TrentHamiltonnz_twitter
Thanks team. You guys are awesome :)
Steve, if I was in Auckland I'd buy you a coffee or some other appropriate libation. But it turns out you'll have to just celebrate by taking a round trip over the harbour bridge.
gauravk0
@gauravk0
Hello guys!
Is there any way in rrdtool that I can delete records of perfdata older than certain timeframe without dumping .rrd to .xml?
Tobias Oetiker
@oetiker
when you dump to xml, you can do anythin you like to the data :)
gauravk0
@gauravk0
So there is no way to change rrd it runtime?
Tobias Oetiker
@oetiker
you can also create a new rrdfile with shorter retension time and populate it from the data of an other rrd file
gauravk0
@gauravk0
I am asserting "runtime" because the data I want to manipulate is very critical and i was looking for alternatives to modify in the same .rrd file instead of creating a new one.