[rrd-users] Recursive use of rrdcgi ?

2006-07-06 Thread Simon Hobson
I had a google about, and found a some messages on the list from a few years ago - these indicated that rrdcgi isn't recursive. What I want to do is something like : where graph-single.inc contains rrdcgi code to generate a single graph from two data sets (in and out on an interf

[rrd-users] Re: Recursive use of rrdcgi ?

2006-07-06 Thread Simon Hobson
Tobias Oetiker wrote: >this should work fine ... Hmm, I must have been doing something wrong earlier because I couldn't get any variable substitutions to work - but that is working now. I think I must just be having an 'off day' - it's darned hot in the office this week :-( I am still stuck

[rrd-users] Can't compile 1.2.13

2006-07-10 Thread Simon Hobson
I'm trying to compile rrdtool 1.2.13 but hitting a problem ... I cd to the source directory and type : ./configure --prefix=/usr/local/rrdtool-1.2.13 && make && make install It fails with : Audit Compilation Environment checking for gcc... gcc checking for C compiler default output file name...

[rrd-users] Re: Can't compile 1.2.13

2006-07-10 Thread Simon Hobson
Dino Dragovic wrote: >>I'm trying to compile rrdtool 1.2.13 but hitting a problem ... >> >>I cd to the source directory and type : >>./configure --prefix=/usr/local/rrdtool-1.2.13 && make && make install >> >> >>It fails with : >>Audit Compilation Environment >>checking for gcc... gcc >>checking f

[rrd-users] Re: Trying to format legend using GPRINT

2006-07-17 Thread Simon Hobson
Nataniel Klug wrote: >I am starting to use RRD and I am getting a serius difficult in >making my legend goes pretty in screen... > >I wanna that my GPRINT legend goes into the same colum so I make this >script (I am using rrdcgi): > >--title="consumo

[rrd-users] Re: can rrdcgi generate just a image? (no html)

2006-07-19 Thread Simon Hobson
Jo Rhett wrote: >Okay, so I need to have an external web site reference an image created by >RRD. But just the image. In short > http://my.rrd.server/path/show-me.cgi > >Based on my reading of the manpage, I want the output to standard out. >This actually works properly like so: > >#!/usr/

[rrd-users] Logging IP traffic without routing it ?

2006-07-24 Thread Simon Hobson
I have a linux based router at one site that is logging traffic with iptables accounting rules and graphing it with rrd. Now the boss wants me to duplicate that on our main network connection. However, we want to do it passively - ie set an interface in promiscuous mode and watch the packets as

[rrd-users] Re: Simple RRDtool graph

2006-07-27 Thread Simon Hobson
Guyon Morée wrote: >I'm having trouble getting my head around RRDtool and all the >examples/tutorials I find try to do something else that I'm trying to >do. > >It's quite simple: > >i have a bunch of time:value data points like this: > >1153912440:31 >1153912447:30 >1153912452:26 >1153912460:28 >

[rrd-users] Re: rrdtool fetch with computed resolution

2006-08-04 Thread Simon Hobson
Sven Ubik wrote: >I am not sure about your question. Are you asking why I want to fetch data >with arbitrary time resolutions? > >It is interesting to see dynamics of network characteristics in different >timescales. RRD file can store statistics in only a limited set of time >resolutions, which a

[rrd-users] Re: Disk Space Requirement (Was: rrdtool fetch with computed resolution)

2006-08-04 Thread Simon Hobson
Tobias Oetiker wrote: > > The only way to do this is to store data covering the whole period >> you may want to chart over, and at the best resolution that you will >> ever want - you can't extract information later that you don't have >> stored. That's likely to be a huge store, and also not

[rrd-users] Can I optimise this ?

2006-08-04 Thread Simon Hobson
I'm using rrdcgi (version 1.2.11-0.5 from Debian testing) to generate a stacked graph and accompanying legend, the source of an example is below. Ultimately I need to be able to handle 254 data sources (all IPs in a subnet) but it's taking a huge amount of memory - with 203 sources it took 1138

[rrd-users] Re: Can I optimise this ?

2006-08-04 Thread Simon Hobson
I wrote: >VDEF:vdatainavg=v1-in, v2-in,+,v3-in,+ > >but this results in "[ERROR: Cannot parse vname from >'VDEF:VDEF:vdatainavg=v1-in,']" Oops, there's a space in there. But taking it out and making it : CDEF:vdatainavg=v1-in,v2-in,+,v3-in,+ I then get : [ERROR: Cannot parse CF in 'GPRINT:vdat

[rrd-users] Re: Can I optimise this ?

2006-08-04 Thread Simon Hobson
Tobias Oetiker wrote: >Make sure you use the latest edition of rrdtool, chances are that >some things got fixed that will make this better. eg loading >several values from the same file ... I'm using the latest I can get a package for, I never did manage to compile the source. I see Debian Unsta

[rrd-users] Re: How can I get the accurate data from the graph by rrdtool?

2006-08-28 Thread Simon Hobson
Chunjing Han wrote: > I have used the Smokeping to get the graph of network delay and >loss package rate. the graphs include daily ,month and year rrdtool >picture. In the rrdtool graph , the max and average data of ping are >listed at the bottom of the picture .But I found that the max pi

[rrd-users] Re: How can I get the accurate data from the graph by rrdtool?

2006-08-29 Thread Simon Hobson
Chunjing Han wrote: >'GPRINT:median:MAX:Max Ping RTT (%.1lf %ss max)', Here you print your max value, lets see where it comes from : >'DEF:median='.${rrd}.':median:AVERAGE', So you are getting the AVERAGE values from the RRD and printing the max of those. What you need to do is extract the MA

[rrd-users] Re: percentile calculations

2006-09-05 Thread Simon Hobson
Alex van den Bogaerdt wrote: > > However, when I'm displaying the graph for the current month, the >> PERCENT function is using all the unknown future values in the >> calculation > >sure > >> causing it to be incorrect. > >Why? Seems obvious enough to me ! >You seem to know abo

[rrd-users] Re: two sh scripts

2006-09-08 Thread Simon Hobson
VladoPortos wrote: >Scripts are here >http://vladoportos.bancodata.eu/ram.txt - show free ram >http://vladoportos.bancodata.eu/test.txt - show temperatures > >in cron they are writted as: > >0-59/1 * * * * root/home/ram.sh >/dev/null 2>&1 >0-59/1 * * * * root/home/test.sh >/dev/null 2

[rrd-users] Re: Stacked area's limit

2006-09-24 Thread Simon Hobson
Steven Hartland wrote: >Is there a stacked area's limit? I've got a graph with a >large number of sources ~200 and my code which works just >fine for smaller numbers starts to go all weird on me >with this number of sources / stacks. > >The result being I loose all negative data ( the second >~100

[rrd-users] Re: Memory consumption (Was: Stacked area's limit)

2006-09-24 Thread Simon Hobson
Alex van den Bogaerdt wrote: > > Interestingly, I've noticed that the same graph needs increasing >> amount of memory as you go back in time - ie using coarser >> consolidations. > > >Careful planning of your RRD may save memory. > >If you only have RRAs spanning 5 minutes per row, and if you a

[rrd-users] Re: Stacked area's limit

2006-09-25 Thread Simon Hobson
Steven Hartland wrote: >Thanks for that. Any ideas why then; if I graph just the >negative values they display fine, same with the positives >but when I graph both together I only get the positives >the y axis starts at 0. If I reduce the number of included >sources it displays both positive and n

[rrd-users] Re: Stacked area's limit

2006-09-25 Thread Simon Hobson
Steven Hartland wrote: > > Just as a thought, are you graphing things in the right order ? >> >> It's embarassing to admit this, but my first attempt I did something >> like this (in bash) : > >Ooo, I am graphing all + then all - but how do I force >them to be a seperate stack? The first area

[rrd-users] Re: GPRINT

2006-10-11 Thread Simon Hobson
At 14:34 +0200 11/10/06, [EMAIL PROTECTED] wrote: >Thanks for your help, Gprint work well now, i have a question, in this >graph: http://www.meteo-quimper.fr/mrtg/temperature-week.png i want to >put the gprint result "Point de rosee" under "Temperature", now it's on >the same line. How i can do tha

[rrd-users] Re: is rrd appropriate for my purpose?

2006-10-13 Thread Simon Hobson
>How doesn't incerease? >I.e. I will want to have a one year history and I will have no limit for >rrd file size, so rrd file will be bigger and bigger, until it will be >one year old, and then it will have aproximately the same size, no? When you create a RRD database, you specify what RRAs to st

[rrd-users] Re: problems with gauge

2006-10-23 Thread Simon Hobson
Mr. Suhas Ghosh wrote: >Please help >I am getting this error please tell me the reason >thanking you in adnace. > failed to load /usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf >with regards Firstly, a point of netiqette : It is bad form to start a new thread by replying to an existing messa

[rrd-users] Re: bogus spikes with Infiniband traffic

2006-10-25 Thread Simon Hobson
Am I missing something, or would using 'DERIVE' as a DS type deal with this ? -- Unsubscribe mailto:[EMAIL PROTECTED] Helpmailto:[EMAIL PROTECTED] Archive http://lists.ee.ethz.ch/rrd-users WebAdminhttp://lists.ee.ethz.ch/lsg2.cgi

[rrd-users] Re: Problem with Fonts (Was: problems with gauge)

2006-10-25 Thread Simon Hobson
Randheer Babu M wrote: >DejaVuSansMono-Roman.ttf this font file was downloaded and kept in the >fonts DIR of windows >.. still this problem persists and RRD gives back >same error "failed to load >/usr/share/rrdtool/fonts/DejaVuSansMono-Roman.ttf". And is "the fonts DIR of windows" the same as "

[rrd-users] Re: Manipulating and Graphing Data

2006-10-30 Thread Simon Hobson
Tony Varriale wrote: >Hi...thanks for the info. I did try DERIVE but I get very inaccurate results. > >For example: >I had about 400 drops in the queue that were generated. The graphs >and data were showing anywhere from 8-16 drops. I again verified >the actual data with a manual snmpwalk. >

[rrd-users] Re: Manipulating and Graphing Data

2006-10-31 Thread Simon Hobson
Tony Varriale wrote: > > Closer, but it uses the values supplied AND THE TIME INTERVALS to >> work out the rate over each interval defined in your rrd. If your >> updates EXACTLY match the time intervals then the rate stored will >> match the value you put in, otherwise it will be adjusted. >

[rrd-users] Re: Manipulating and Graphing Data

2006-10-31 Thread Simon Hobson
Tony Varriale wrote: >Ok...well...DERIVE doesn't give me accurate numbers. Not even close. That >is why I am trying to ask the community for a solution to the problem. OK, try giving us an example of : what you put in what you expect to come out what you actually get out and if the latter two a

[rrd-users] Re: Manipulating and Graphing Data

2006-10-31 Thread Simon Hobson
Tony Varriale wrote: >Sorry, I replied to Simon directly... > >> OK, try giving us an example of : >> what you put in >> what you expect to come out >> what you actually get out >> and if the latter two are different, why you think it's wrong ! > >Ok. I am trying to gather and graph dropped

[rrd-users] Re: indicate collector down on graph

2006-11-03 Thread Simon Hobson
Ford, Andy wrote: >I'm collecting some ping-time type data with a timeout and I want to >differentiate on the graphs between collector failures and target >failures. >Right now, if I timeout or if my collector is down I get the same thing: >an empty graph. >I need to have say, a red block in the gr

[rrd-users] Re: indicate collector down on graph

2006-11-04 Thread Simon Hobson
Ford, Andy wrote: > > How about keeping another rrd file and just put a zero (or something) >> into it whenever you put anything in the ping-time rrd ? That way, if >> your collector is down, this new rrd will have nan as well as the >> ping time graph - so you can simply draw a red block if t

[rrd-users] Re: Segfaulting

2006-11-07 Thread Simon Hobson
Erik wrote: >I've got some 8000+ rrdfiles in a dir and i am trying to create a >graph containing the sum from a selecton of about 1700 rrdfiles. >The first problem i ran into is the ARG_MAX limit, by renaming >variables i've gotten around that. >The problem now is that RRDtool segfaults, is there

[rrd-users] Re: php bindings for rrdtool

2006-11-11 Thread Simon Hobson
Rogério Schneider wrote: >So, after the shel_exec, how you show the graph? FWIW, I use a bash script as my CGI. The simple way to do it is to have rrd-graph generate an image in a file and return an image reference tag - that way, as the script returns, there will be a file that will automati

[rrd-users] Re: Help with Bash script to calc end-time in multiples of 300 ?

2006-11-18 Thread Simon Hobson
Rob Conway wrote: >I just use "date +%s" to get the unix time but how can I easily >round this value ? etime=`date +%s` step=300 etime=$(( ${etime} - ( ${etime} % ${step} ) )) Now, can someone show me how to convert the resulting end time to a human readable form - eg so I can use it in a gpri

[rrd-users] Re: Help with Bash script to calc end-time in multiples of 300 ?

2006-11-19 Thread Simon Hobson
Alex van den Bogaerdt wrote: > > etime=`date +%s` >> step=300 >> etime=$(( ${etime} - ( ${etime} % ${step} ) )) > >etime=$(( ${etime} / ${step} * ${step} )) > >is 10% faster, at least on my system. I tried this by looping 100,000 >times doing those calculations, several runs. Bash uses intege

[rrd-users] Re: Q: Dynamically graphing only DS's with data out of an RRD?

2006-11-29 Thread Simon Hobson
Rivera, Edwin R wrote: >I have an RRD database set up with about 100 DS's defined; one for each >error-code I'd like to graph. > > > >My question is: Say over a given period of time, only 10 of the 100 >possible error codes are recorded (let's assume the other 90's are all >set to U), is there a w

[rrd-users] Re: rrdGraph help

2006-11-30 Thread Simon Hobson
Kant, D (Dave) wrote: >Sometimes my sensor goes offline and the RRD archives contain >Unknown datapoints. >I can set them to zero using CDEF statments. This results in large gaps in >the graph. (See the first graph at http://tinyurl.com/ve6d8). > >Is there a way - similar to the second graph - to

[rrd-users] Re: Graph Error ?

2006-12-05 Thread Simon Hobson
ICALLING wrote: >AREA:a#DE0056:"OP1 \:" \ >GPRINT:a:LAST:"Current\:%2.0lf%S" \ >GPRINT:a:MIN:"Min\:%2.0lf%S" \ >GPRINT:a:MAX:"Max\:%2.0lf%S" \ >GPRINT:a:AVERAGE:"Average\:%2.0lf%S\n" \ >LINE2:b#7EE600:"OP2\:" \ >GPRINT:b:LAST:" Current\:%2.0lf%S" \ >GPRINT:b:MIN:"Min\:%2.0lf%S" \ >GPRIN

[rrd-users] Re: Changing Average value in SRG.conf to MAX

2006-12-07 Thread Simon Hobson
First off, please do NOT start a new thread by replying to an unrelated message - it makes the threading in mail archives rather odd ! Edgar Humberto Parra wrote: >Hi guys, I was wondering the following: > >I have almost a year worth of data in my RRD files, and my manager asked >me, if I can ch

[rrd-users] Re: GetHTTP

2006-12-12 Thread Simon Hobson
Baker, John wrote: >Does anybody know of a program for FreeBSD/Linux that acts in the same >way as GetHTTP does for windows? It fetches a page from a web server >(and optionally content) and then reports back how much time it took in >milliseconds. It might also be worth looking at the plugins ava

[rrd-users] Re: Value of emails per minute or per 5 minutes

2006-12-15 Thread Simon Hobson
Oliver Schulze L. wrote: >Since I have too few volumen of emails per seconds, I would like >to graph instead of emails/s, the value of emails/min (emails per minute) Multiply by 60 to get /minute, multiply by 300 to get /5minutes, by 3600 to get /hour ... -- Unsubscribe mailto:[EMAIL PROTECTED]

[rrd-users] Re: Argument List too long?

2006-12-18 Thread Simon Hobson
Kant, D (Dave) wrote: >I'm not sure I understand the correct format for invoking rrdtool's pipe mode. >Do you mean something like this? > > rrdtool graph < my_long_arg_list.txt > out > >where my_long_arg_list.txt would look something like this? > >[]cat my_long_arg_list.txt >site_disk_HMW6dFGqY4.

[rrd-users] Re: Processing HEX values

2006-12-19 Thread Simon Hobson
Marcel Schulte wrote: >Many thanks to John Baker and Dan Cech for their suggestions. >Unfortunately the data is fetched by an application in our management >solution and I'm unable to insert my own script between fetching and >rrd-feeding. I'd be surprised if there is really NO way to do it - at

[rrd-users] Re: RRD step size retrieving older data

2006-12-22 Thread Simon Hobson
John Biederstedt wrote: >I've notice the when I graph mrtg rrd data older than a few months, the >step size is always 24 hours. For example, if I graph mrtg data >(gathered at 5 minute intervals) from 6 months ago, it's clearly graphed >in 24-hour step sizes: RTFM ? What did you tell rrd to sto

[rrd-users] Re: Graph data is affected by the size of PNG image

2007-01-04 Thread Simon Hobson
Alejandro Galue wrote: >Graph 1 >http://lists.ee.ethz.ch/p/03-g1.png > >Graph 2 >http://lists.ee.ethz.ch/p/03-g2.png > >The real data is showed on "Graph 2" (the big one); but "Graph 1" (the >small one) shows non valid data. > >If you see Graph 1, almost all peaks dissapears from graph. > >I used

Re: [rrd-users] Order of legend-items in a stack

2007-01-25 Thread Simon Hobson
Wolfgang Powisch (privat) wrote: >When using STACKs, the order of the AREA definitions is mandatory. >But the order of this definition forces the legend-items also to be in >this order. I would need some solution to change the order/position of >the legend-items ... is this possible. > >For better

Re: [rrd-users] rate per day graph from rate per hour DS

2007-01-30 Thread Simon Hobson
Ben Griffith wrote: >Doesn't it just add up all the entries to get a total for the hour, >then from that a rate per second? Or does it actually compute the >rate throughout the hour, on the fly? No, it ALWAYS computes an average/max/min depending on what you set in the rrd. Also, you NEED to

Re: [rrd-users] rate per day graph from rate per hour DS

2007-01-30 Thread Simon Hobson
Ben Griffith wrote: > > I could try updating more frequently. I think I'd have to >> adjust the rate multiplier accordingly. So if I update every 15 seconds I'd >> have to multiply by 900 (number of seconds in an hour divided by the number >> of 15 second blocks in a minute) instead of 3600

Re: [rrd-users] Generating images from webpages ?

2007-02-02 Thread Simon Hobson
[EMAIL PROTECTED] wrote: > It's a couple of years since I've last used RRDtool - and that time >it was on a MS IIS server... As far as I remember, I added a cgi >handler for rrdcgi files (or someting like that), so that images >were gerenated dynamically when the page was loaded (with some sor

Re: [rrd-users] newbie's bugged graph

2007-02-06 Thread Simon Hobson
Guennoc Bernard wrote: >Here is a small test.bat that show the pb: > >rrdtool create test.rrd -b 1157657661 -s 1 DS:C1:GAUGE:2:0:U >RRA:AVERAGE:0,5:1:3 >rrdtool update test.rrd 1157657662:500 >rrdtool update test.rrd 1157657663:1500 >rrdtool update test.rrd 1157657664:1000 >rrdtool graph test.png

Re: [rrd-users] Maximum number of data sources/max cdef size.

2007-02-10 Thread Simon Hobson
George Barnett wrote: >I'm aggregating boxes into a graph to draw a cluster and I'm getting >null values. > >Is there a maximum number of datasources in 1 graph? > >Is there a maximum size of a cdef? > >I've found that if I do this with only a few DS's, it works fine. Maybe >somebody has tried th

Re: [rrd-users] Difficulty getting rrdtool to store "daily" information

2007-02-16 Thread Simon Hobson
Bill Moran wrote: >rrdtool update /var/www/bacula/jobs.rrd 1171083600:68440880988 >rrdtool update /var/www/bacula/jobs.rrd 117117:384966685 >rrdtool update /var/www/bacula/jobs.rrd 1171256400:7604606807 >rrdtool update /var/www/bacula/jobs.rrd 1171342800:553163 >rrdtool update /var/www/bac

Re: [rrd-users] what to do with data that resets every day

2007-03-01 Thread Simon Hobson
Joey Rutledge wrote: >I am trying to setup some graphs on total connections (mail server) >and am getting data from the application via a web dashboard. The >application resets the data for total connections on a daily basis >back to zero and essentially does a total count of connections for >each

Re: [rrd-users] Fetching from the beginning of an RRD file

2007-03-02 Thread Simon Hobson
Travis Spencer wrote: > > There is a pointer to the last entry written. That's the most recent >> available data. Next to it is older, next to that one is older, and >> so on. When you are back at the pointer, you have seen all available >> data. > >While I have no doubt that is how RRD han

Re: [rrd-users] cannot update

2007-03-13 Thread Simon Hobson
zura baizura wrote: >i want to update data using script but when i run the >script the actual data=1173773814 , is not in the >range date(1173773700 and 1173774000). > >do u have idea about how to fix my script so that the >date can update with the actual time. Unfortunately I left my crystal ba

Re: [rrd-users] problem update with crontab

2007-03-13 Thread Simon Hobson
zura baizura wrote: >gawk: cmd. line:2: (END OF FILE) >gawk: cmd. line:2: parse error >ERROR: opening 'sss.rrd': No such file or directory >ERROR: opening 'sss.rrd': No such file or directory >- >please... help me to fix the crontab error... It

Re: [rrd-users] Filling in missing data

2007-03-15 Thread Simon Hobson
Micah Gersten wrote: >How do I fill in missing data from an rrd? Do you mean "I have some data that didn't get put in and I'd like to add it" or "I have missing data and somehow want it to magically appear from nowhere" ? For the former, you have to export the database, edit the resulting fil

Re: [rrd-users] to view my graph i

2007-03-17 Thread Simon Hobson
zura baizura wrote: >my problem update using crontab now settle . Thank you >to all people who help me. You're welcome. >But , im here to tell u how to view my graph as im >using crontab. To make u umderstand my proble i show u >the result in crontab,ok. > >IN /var/spool/mail/root---

Re: [rrd-users] Creating monthly and daily datatraffic graphs

2007-03-20 Thread Simon Hobson
Erik Hensema wrote: >We're using mrtg to collect interface stats of our switch and store >the data using rrdtool. > >Since we're charging our customers on a monthly basis on the total >data transferred, I'd like to create graphs per month. >I guess this won't be possible with the graph function of

Re: [rrd-users] Special Formula Help?

2007-03-26 Thread Simon Hobson
Wintle, Rod wrote: >I have a router interface setup in cacti to poll ever 5 minutes. >Each hour, I want to roll that 12 x 5 minute values into a average >Each day, I want to take the 8 largest 1 hour averages (busiest 8 >hours) and create a value that would represent the value for the day. I don

Re: [rrd-users] problems with rrd and check_traffic

2007-04-04 Thread Simon Hobson
Henrique Silveira Cadore wrote: >The graphic generated shows me the average each 5 minutes. shouldnt >it be every minute since im updating the database every minute? No, I suggest you try and understand what rrd is doing for you. Specifically, except under certain very specific circumstances yo

Re: [rrd-users] Questions about different RRA`s

2007-04-04 Thread Simon Hobson
David Schulz wrote: >rrdtool create process_count.rrd --step 60 DS:pc:GAUGE:120:0:U >RRA:AVERAGE:0.5:1:525960, which is supposed to take one value every >60 seconds, for one year, >Can someone show me how to best create one such .rrd with multiple >RRA`s, explain to me the calculations you ma

Re: [rrd-users] Still having problems

2007-04-09 Thread Simon Hobson
Russell Handorf wrote: >I have the DB setup like this > >$rrdtool create $rrd --start $timep --step 86400 >DS:sql:ABSOLUTE:86400:0:1000 RRA:MAX:0.5:1:6000 >$rrdtool update $rrd $time:$SQLJoinr > >$rrdtool = path to rrdtool >$rrd = the path and name of the rrd file >$time = the time in seco

Re: [rrd-users] RRD create. Advice needed if this is correct.

2007-04-11 Thread Simon Hobson
Js wrote: >I want to create a RRD database that contains 4 values over a timespan >of 10 years. >The database should be updated only 2 times per day that makes every 12 >hours or 43200 seconds. > >one DS should just hold the latest entry >one DS should hold the average of 1 day (that makes 2 times

Re: [rrd-users] RPN Question

2007-04-17 Thread Simon Hobson
Wesley PA4WDH wrote: >I have a lot of rrd's with the same DS in it. What i >want to do is to calculate the sum of all the DS's and >display that in a "total" graph. > >The problem is that those DS's have a lot of unknown >values in it. What i need is a RPN that does: > >if (value_of_ds != unknown

Re: [rrd-users] RPN Question

2007-04-18 Thread Simon Hobson
Wesley PA4WDH wrote: > > DEF:ds_one=rrdfile.rrd:foo:AVERAGE >> DEF:ds_two=rrdfile.rrd:bar:AVERAGE >> DEF:ds_three=other_rrdfile.rrd:baz:AVERAGE >> >> CDEF:total=\ >> ds_one,UN,0,ds_one,IF,\ >> ds_two,UN,0,ds_two,IF,+,\ >> ds_three,UN,0,ds_three,IF,+ >> >> Something like that would do the t

Re: [rrd-users] Problem fetching/graphing MAX values of integers giving floating values

2007-04-20 Thread Simon Hobson
>I'm updating the .rrd file ONLY with values 0 and 1, every 60 seconds. Do you ALWAYS update with a timestamp that is EXACTLY a multiple of your step size ? If you provide an update with is not exactly one step size after the previous update, and whose timestamp is not a multiple of the step si

Re: [rrd-users] Design an RRD for the following data

2007-04-27 Thread Simon Hobson
Goldburt, Dan wrote: >Apologies if this has been discussed elsewhere, it seems to me like a >common enough problem but I couldn't find a solution described anywhere. It has, it is, and there have been - in that order ! >I'm trying to graph stock market volume. As you can see, the data is a >coun

Re: [rrd-users] recover from logged incorrect time

2007-04-28 Thread Simon Hobson
Rob Conway wrote: >I ahve a small emmbedded processor running rrdtools. When the unit >starts up the time is incorrect and I have on a number of occasions >had the system log data with a time stamp that is 10hrs in front of >real time. When the clock is corrected rrd will not accept the data

Re: [rrd-users] time as a counter?

2007-04-30 Thread Simon Hobson
Grant Kelly wrote: >There are a bunch of weather stations I would like to watch and >record the last time their data is updated. I have a python script >which looks at the data and determines the time of the most recent >data. This time is typically 10-30 minutes behind the actual time. I >run

Re: [rrd-users] time as a counter?

2007-04-30 Thread Simon Hobson
Grant Kelly wrote: >Perhaps I was unclear. I only want to graph "last time we got data", >as this should increase every ten minutes. I want to make a graph >that shows when this doesn't increase, and highlight areas where it >doesn't increase for a certain threshold of time. This appears >possi

Re: [rrd-users] rrdfetch resolution problem

2007-05-02 Thread Simon Hobson
Matt Pounsett wrote: >my @TrackRRTypes = qw( A ANY CNAME MX NS PTR SOA ); >my @args = ( "rrds/$host.rrd", > qw(--step 300 ), > "-b", $start_time-300, > (map { "DS:$_:ABSOLUTE:600:0:1000" } @TrackRRTypes ), > 'DS:OTHER:ABSOLUTE:600:0:1000', >

Re: [rrd-users] clarification of graph resolution

2007-05-08 Thread Simon Hobson
Spencer Anderson wrote: >I am trying to pick the best graph size for the data I'm trying to >present. I collect data every minute and would like to show 24 >hours of data on one graph. Am I correct in assuming that at the >default resolution, 1 data point = 1 pixel, I would need a graph >1440

Re: [rrd-users] Getting average for a month from rrd file with no sd's

2007-05-14 Thread Simon Hobson
J Bell wrote: >I'm new to the wonderful world of munin and rrdtool. I'm tearing my >hair out trying to do what looks simple--get a single number showing >me an average for a whole month of data. For example: > >rrdtool fetch puma-iostat-dev22_0_read-d.rrd AVERAGE --start >20070401 --end 2007043

Re: [rrd-users] RRD Graphs on the fly?

2007-05-15 Thread Simon Hobson
John Nicastro wrote: >Hello, new to RRD so bare with me. WOuld like to do the following, >please let me know if possible and point to a "how-to" if it exists: > >1) ONLY WHEN USER INITIATES, Import data from Oracle table holding >samples (5 min based), convert into RRD >2) Create on-the-fly grap

Re: [rrd-users] Correction of wrong system date in rrd database

2007-05-16 Thread Simon Hobson
Ing. R. Neuhold wrote: >Hi > >As newbee to Mrtg and the mailing list I may ask a question, which has been >answered already but I could not find information. > >There was Mrtg running perfectly on a Linux Fedora machine. > >The system was replaced and the configuration "moved" to another one with >

Re: [rrd-users] Correction of wrong system date in rrd database

2007-05-16 Thread Simon Hobson
and I should have added : 5) If you still have a copy of the database from the old system, extract some of the historical data from that and insert it back into the table in option 4 above. Even more work, but avoids losing 5 months of history data.

Re: [rrd-users] Is it possible to create the rrd database by reading from a file?

2007-05-16 Thread Simon Hobson
betamaz wrote: >I'm new to rrdtool and have been reading up on the tutorial posted >on the main webpage. The examples in the tutorial describe how to >create a database by taking measurements. For example, using snmp or >it gives basic examples where the inputs are via the rrdtool create >comma

Re: [rrd-users] Is it possible to create the rrd database by reading from a file?

2007-05-19 Thread Simon Hobson
betamaz wrote: >Q1: Tor the time attribute that rrdtool needs--for now-- i've added >an arbitrary value to represent time ticks. The second column is not >of a number format--though the pc which is in hex can easily be >coverted to a number format. This brings me to my first question: Is >it

Re: [rrd-users] Problems with COUNTER data sources

2007-05-24 Thread Simon Hobson
Alexander Koeppe wrote: >I searched the web for my problem but could find something that helped. This list has had examples of this problem/query at a frequency of probably at least twice a month ! >So here is my problem: > >I've created several Graphs and databases. But all Databases that have

Re: [rrd-users] Exact Number

2007-05-30 Thread Simon Hobson
Michaux Julien wrote: >I've got a problem with RRD. I graph a windows server counter which >is the number of active terminal server session. >In the graph, I put GPRINT like this : > >GPRINT:NbSessionInactive:MAX:"%8.0lf %s " \ >GPRINT:NbSessionInactive:MIN:"%8.0lf %s " \ >GPRINT:NbSessionIna

Re: [rrd-users] SUM, in gprint, when DS type is GAUGE

2007-06-15 Thread Simon Hobson
Danny KjÊrgaard wrote: >as the subject tells, i would like to have a sum after each lengend. I need >to messaure mail flow per 5min, over 24 hours, and would like to have the >sum of of mails in the last 24 hours too. When i use a vdef and total i >tells something way too high, and a floating num

Re: [rrd-users] SUM, in gprint, when DS type is GAUGE

2007-06-18 Thread Simon Hobson
Danny Kjærgaard wrote: >However i have some problems with the normalisation that you speak of. >I loose about 3 when i calculate the total of 3-4000 this might >not be that much. But if there is a way to make this better i would >love to know how. I enter the data to the rrd file as precise that

Re: [rrd-users] Problem with Time series data entry

2007-06-18 Thread Simon Hobson
Chris G. wrote: >I have some historical time series data. The data was collected approx. >every 15 mins, I say approx. because the times are not exactly 15 mins to >the second apart. In some cases there could be 10-15 seconds of delay >between each of the 15 min collections. In some cases if a c

Re: [rrd-users] Web log graphing

2007-06-19 Thread Simon Hobson
Geoff Garside wrote: >You should be able to get the bytes of each request from the access log, it >should be the 7th field in the standard combined log format (%b) > >"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" > >though the %r field will require a bit more care as you can't just

Re: [rrd-users] QoS

2007-06-24 Thread Simon Hobson
Mohammed Alhaj Ali wrote: > I need to implement QoS and measure the drop packet for each >customer; would any one please help me on how can I generate such >map like this with detailed steps please !! Using what ? What OS do you use ? Where are you applying the QoS ? If you do the routing wit

Re: [rrd-users] can't sanity-check rrdtool with sample data ... please help

2007-06-27 Thread Simon Hobson
Gore Jarold wrote: > > RRDtool behaviour is well documented. You have >> selected a step >> size of 86400, so every timestamp is a whole >> multiple of 86400. > > >Yes, I see that it is - and that is good, but it's the >_wrong_ multiple of 86400 - the dates coming out of my >RRD are (as far a

Re: [rrd-users] can't sanity-check rrdtool with sample data ... please help

2007-06-27 Thread Simon Hobson
Gore Jarold wrote: >So this is the other problem - and I'll just make the >question easy: > >If my update command is: > >rrdtool update hits.rrd 1141286400:1 1141372800:10 >1141459200:10 1141545600:12 1141632000:12 >1141718400:12 > >and I want my output with fetch to give me: > >1,10,10,12,12,12 >

Re: [rrd-users] consolidation or no consolidation?

2007-07-16 Thread Simon Hobson
KOZMAN Balint wrote: >Well, on the presentation side (regarding rrdgraph) I can ensure, that >number of values to be presented will fit. To be more precise, I have a >worker thread somewhere which inserts recently collected data to the rrd >on a 10 sec period, having only 1 DS in the rrd. Now, whe

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-20 Thread Simon Hobson
Mark Seger wrote: >I'm sure it's me and not rrdtool, but I can't figure out what's >happening! Here's what did: >- I have a data that has been generated at 1 second intervals >- generated a plot with gnuplot as a known quantity >- loaded the same data into rrdtool as absolute values and also with

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-21 Thread Simon Hobson
Mark Seger wrote: >The thing that's interesting about this whole situation is that on one >level rrd appears to draw a cleaner graph and the gnuplot one looks a >little fuzzier, but I also think the gnuplot provides valuable >information that gets lost, and probably missed with rrd. If my >example

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-21 Thread Simon Hobson
Mark Seger wrote: >I think what rrd shines at is being able to archive data at very coarse >time intervals, ultimately being able to show you things like average >loads, etc where you're really only interested in trends and I want to >look at diagnostic data and never lose a data point. Well you

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-24 Thread Simon Hobson
Mark Seger wrote: >I tried what you suggested by using a min/max RRA in addition to storing >all the data in a 3rd RRA and it appears to work as you suggested it >would, but some of the peaks aren't as high as I expected and so I did >some further digging to try and understand what I'm seeing. I h

Re: [rrd-users] trying to understand the relationship between source data, what's in rrd and what gets plotted

2007-07-25 Thread Simon Hobson
Mark Seger wrote: > > That is because hh:mm:06, hh:mm:16, hh:mm:26 and so on are not a whole >> multiple of 10 seconds. >> >> You have "n*step+offset", not "n*step". This is why normalization is >> needed. >> >> >> >>> As I said above it sounds like if I conform my data to align to the tim

Re: [rrd-users] Incorrect numbers returned when monitoring network stats at one second intervals

2007-07-26 Thread Simon Hobson
Mark Seger wrote: >>Sampling every second does not occasionally give you an invalid >>value as you suggest - the value it gives is 100% valid, just >>unexpected ! Just like a lot of 'amateur statistics' manage to come >>to invalid conclusions with valid data. >I guess I have to differ on your c

Re: [rrd-users] Incorrect numbers returned when monitoring network stats at one second intervals

2007-07-26 Thread Simon Hobson
Mark Seger wrote: >I had actually written this as a postscript to another topic and Alex >suggested starting another thread, but by then I had already replied. >Since there were no follow-up replies I was thinking perhaps this note >got lost in the haze and so I'm reposting is as a new one It di

Re: [rrd-users] Linux counter updates (Was: trying to understand the relationship between source data, what's in rrd and what gets plotted)

2007-07-25 Thread Simon Hobson
Changing the subject line ... Mark Seger wrote: >>>btw - just to toss in an interesting wrinkle did you know if you sample >>>network statistics once a second you will periodically get an invalid >>>value because of the frequency at which linux updates its network >>>counters? the only way I'm

Re: [rrd-users] changing y values on an up/down graph

2007-07-27 Thread Simon Hobson
Eric J. Bowser wrote: >I'd still like to graph my values in both directions from the "0" on the >x-axis. Is this possible, or will I have to put both values going upward? You mean you convert one set of values to negative (or collect them that way) so that they plot down from teh X axis, but y

Re: [rrd-users] Graphing min-max ranges

2007-07-29 Thread Simon Hobson
Gerhard Strangar wrote: >I've got some RRDs with a min and a max RRA and I'd like to graph these >ranges. My first attempt war to draw an AREA using the max RRA in color >and then draw an AREA using the min RRA using white. However, this only >works for non-negative data. >I'm thinking about chang

  1   2   3   4   5   6   7   >