Search found 5 matches

by pbud70
Mon Aug 14, 2017 5:40 pm
Forum: Informational/HOWTO's
Topic: [HOWTO] Debug NaN's in your graphs
Replies: 18
Views: 124651

Re: [HOWTO] Debug NaN's in your graphs

OK, got it with the excellent help of the folks @ ITPA www.ipta.org.au . Basically the data value that I was putting in had a trailling \r\n. Finding this out was done with… root@whisk:~# echo “$myvar” | od -a 0000000 0 . 7 8 cr nl 0000006 and: printf "%f" "$myvar" : invalid numb...
by pbud70
Wed Aug 09, 2017 6:36 pm
Forum: Informational/HOWTO's
Topic: [HOWTO] Debug NaN's in your graphs
Replies: 18
Views: 124651

Re: [HOWTO] Debug NaN's in your graphs

Hi, I've been bashing my head against this issue for a while now... time to get some help. I'm reading data from a database into variables, and then dropping that into the rrd. Graphs aren't working in cacti, which is failing because the rra aggregations are all returning nan. I've worked my way thr...
by pbud70
Mon Oct 10, 2016 10:27 pm
Forum: Help: General
Topic: 5 year RRA producing graphs but rra_id=all doesn't display
Replies: 2
Views: 797

Re: 5 year RRA producing graphs but rra_id=all doesn't displ

Poor form I know, but I've narrowed it down to data in the joining table: data_template_data_rra Basically it's not getting populated with the records necessary to return all of the new RRAs. So inserting these values: INSERT INTO `cacti`.`data_template_data_rra` (`data_template_data_id`, `rra_id`) ...
by pbud70
Mon Oct 10, 2016 8:58 pm
Forum: Help: General
Topic: 5 year RRA producing graphs but rra_id=all doesn't display
Replies: 2
Views: 797

Re: 5 year RRA producing graphs but rra_id=all doesn't displ

Hmm it looks like it's controlled by: lib/functions.php:/* get_associated_rras - returns a list of all RRAs referenced by a particular graph Which is: function get_associated_rras($local_graph_id) { return db_fetch_assoc("select rra.id, rra.steps, rra.rows, rra.name, rra.timespan, data_template...
by pbud70
Mon Oct 10, 2016 8:18 pm
Forum: Help: General
Topic: 5 year RRA producing graphs but rra_id=all doesn't display
Replies: 2
Views: 797

5 year RRA producing graphs but rra_id=all doesn't display

Hi all, I've been reading through previous posts on this, and almost have what I want working... What I'm after is to add a 5 year graph, so that we can look at much longer term trends. I've picked one specific data source to start with, and it's producing a 5 year graph OK - I can browse to it dire...