Problem Where Nothing Will Plot On Graph

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
h1d3m3
Posts: 25
Joined: Mon Nov 17, 2003 1:15 am

Problem Where Nothing Will Plot On Graph

Post by h1d3m3 »

I've been using cacti for a while and I thought I had a good handle on the ins and outs of graphing, but this is stumping me.

Trying to graph an item that comes from net-snmp exec script. Here is the output:

Code: Select all

# snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.59
UCD-SNMP-MIB::ucdavis.59.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.59.2.1 = STRING: "gc-YGCT"
UCD-SNMP-MIB::ucdavis.59.3.1 = STRING: "/usr/bin/perl /opt/snmpd-scripts/monitor_gc.pl YGCT"
UCD-SNMP-MIB::ucdavis.59.100.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.59.101.1 = STRING: "6.862"
UCD-SNMP-MIB::ucdavis.59.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.59.103.1 = ""
so the OID is .1.3.6.1.4.1.2021.59.101.1

On the cacti system, spine seems to be loading the data fine:

Code: Select all

03/04/2009 10:30:04 AM - SPINE: Poller[0] Host[2] DS[909] SNMP: v2: 10.1.6.27, dsname: netsnmp_j_ygct, oid: .1.3.6.1.4.1.2021.59.101.1, value: 6.862 
But no matter what I try for the data template (I have tried derive, gauge and counter...I think I want derive) or for graph template (line3 - average or last), the graph always comes up with NaN for values and plots nothing.

Any pointers appreciated. The value is the total time taken for a Java young gen GC (i.e. 6.862 seconds) if that matters. (I'm running Version 0.8.7b)
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Well, it's a Guage and you have to delete the RRDfile any time you change a DS Type (aka Delete and Recreate the Graph).

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
h1d3m3
Posts: 25
Joined: Mon Nov 17, 2003 1:15 am

Post by h1d3m3 »

TheWitness wrote:Well, it's a Guage and you have to delete the RRDfile any time you change a DS Type (aka Delete and Recreate the Graph).

TheWitness

I wish it was that simple, I tried that. I am at the point now where even the graph does not appear. I have checked the logs for errors, but there is nothing significant that I can see. It appears that it should be working (i.e. spine looks good, the rrd is there, the data seems to be hitting the rrd....but at the end of the day the graph does not even appear (or previously, it was all NaNs)

the logs again:

Code: Select all

03/06/2009 10:14:02 AM - SPINE: Poller[0] Host[2] DS[911] SNMP: v2: 10.1.6.27, dsname: snmp_j_ygct, oid: .1.3.6.1.4.1.2021.59.101.1, value: 10.248
03/06/2009 10:09:03 AM - SPINE: Poller[0] Host[2] DS[911] SNMP: v2: 10.1.6.27, dsname: snmp_j_ygct, oid: .1.3.6.1.4.1.2021.59.101.1, value: 10.248
03/06/2009 10:04:03 AM - SPINE: Poller[0] Host[2] DS[911] SNMP: v2: 10.1.6.27, dsname: snmp_j_ygct, oid: .1.3.6.1.4.1.2021.59.101.1, value: 10.064 
I am attaching the current rrd and the exported template in hopes that there is something obviously wrong with it.

(side note : I did have to adjust the SNMP Timeout to 2000 for this host so the snmp exec had enough time to work.)

Thanks for the help.
Last edited by h1d3m3 on Fri Mar 06, 2009 3:07 pm, edited 2 times in total.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Your going to have to dump it.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
h1d3m3
Posts: 25
Joined: Mon Nov 17, 2003 1:15 am

Post by h1d3m3 »

TheWitness wrote:Your going to have to dump it.

TheWitness
Do you mean rrdtool dump?

I cant attach, getting : "Sorry, but the maximum filesize for all Attachments is reached. Please contact the Board Administrator if you have questions" but the zipped dump file is only 37k though
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Delete your other attachments or e-mail to me.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
h1d3m3
Posts: 25
Joined: Mon Nov 17, 2003 1:15 am

Post by h1d3m3 »

TheWitness wrote:Delete your other attachments or e-mail to me.

TheWitness
Added.
Attachments
test_render_snmp_j_ygct_911.dump.zip
(37 KiB) Downloaded 94 times
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

According to your RRDfile, you are actually getting data. Here is a snippet from the file:
<!-- 2009-03-06 09:55:00 EST / 1236351300 --> <row><v> 1.0064000000e+01 </v></row>
<!-- 2009-03-06 10:00:00 EST / 1236351600 --> <row><v> 1.0064000000e+01 </v></row>
<!-- 2009-03-06 10:05:00 EST / 1236351900 --> <row><v> 1.0100186667e+01 </v></row>
<!-- 2009-03-06 10:10:00 EST / 1236352200 --> <row><v> 1.0248000000e+01 </v></row>
<!-- 2009-03-06 10:15:00 EST / 1236352500 --> <row><v> 1.0248000000e+01 </v></row>
<!-- 2009-03-06 10:20:00 EST / 1236352800 --> <row><v> 1.0248000000e+01 </v></row>
<!-- 2009-03-06 10:25:00 EST / 1236353100 --> <row><v> 1.0248000000e+01 </v></row>
<!-- 2009-03-06 10:30:00 EST / 1236353400 --> <row><v> 1.0248000000e+01 </v></row>
<!-- 2009-03-06 10:35:00 EST / 1236353700 --> <row><v> 1.0248000000e+01 </v></row>
<!-- 2009-03-06 10:40:00 EST / 1236354000 --> <row><v> 1.0248000000e+01 </v></row>
<!-- 2009-03-06 10:45:00 EST / 1236354300 --> <row><v> 1.0248000000e+01 </v></row>
<!-- 2009-03-06 10:50:00 EST / 1236354600 --> <row><v> 1.0248000000e+01 </v></row>
<!-- 2009-03-06 10:55:00 EST / 1236354900 --> <row><v> 1.0248000000e+01 </v></row>
<!-- 2009-03-06 11:00:00 EST / 1236355200 --> <row><v> 1.0248000000e+01 </v></row>
<!-- 2009-03-06 11:05:00 EST / 1236355500 --> <row><v> 1.0248000000e+01 </v></row>
<!-- 2009-03-06 11:10:00 EST / 1236355800 --> <row><v> 1.0248000000e+01 </v></row>
<!-- 2009-03-06 11:15:00 EST / 1236356100 --> <row><v> 1.0248000000e+01 </v></row>
<!-- 2009-03-06 11:20:00 EST / 1236356400 --> <row><v> 1.0298936667e+01 </v></row>
<!-- 2009-03-06 11:25:00 EST / 1236356700 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 11:30:00 EST / 1236357000 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 11:35:00 EST / 1236357300 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 11:40:00 EST / 1236357600 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 11:45:00 EST / 1236357900 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 11:50:00 EST / 1236358200 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 11:55:00 EST / 1236358500 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 12:00:00 EST / 1236358800 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 12:05:00 EST / 1236359100 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 12:10:00 EST / 1236359400 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 12:15:00 EST / 1236359700 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 12:20:00 EST / 1236360000 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 12:25:00 EST / 1236360300 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 12:30:00 EST / 1236360600 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 12:35:00 EST / 1236360900 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 12:40:00 EST / 1236361200 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 12:45:00 EST / 1236361500 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 12:50:00 EST / 1236361800 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 12:55:00 EST / 1236362100 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 13:00:00 EST / 1236362400 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 13:05:00 EST / 1236362700 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 13:10:00 EST / 1236363000 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 13:15:00 EST / 1236363300 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 13:20:00 EST / 1236363600 --> <row><v> 1.0507000000e+01 </v></row>
<!-- 2009-03-06 13:25:00 EST / 1236363900 --> <row><v> 1.0514866667e+01 </v></row>
<!-- 2009-03-06 13:30:00 EST / 1236364200 --> <row><v> 1.0547000000e+01 </v></row>
<!-- 2009-03-06 13:35:00 EST / 1236364500 --> <row><v> 1.0547000000e+01 </v></row>
<!-- 2009-03-06 13:40:00 EST / 1236364800 --> <row><v> 1.0547000000e+01 </v></row>
<!-- 2009-03-06 13:45:00 EST / 1236365100 --> <row><v> 1.0547000000e+01 </v></row>
<!-- 2009-03-06 13:50:00 EST / 1236365400 --> <row><v> 1.0547000000e+01 </v></row>
<!-- 2009-03-06 13:55:00 EST / 1236365700 --> <row><v> 1.0547000000e+01 </v></row>
<!-- 2009-03-06 14:00:00 EST / 1236366000 --> <row><v> 1.0547000000e+01 </v></row>
So, your problem lies somewhere else.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
h1d3m3
Posts: 25
Joined: Mon Nov 17, 2003 1:15 am

Post by h1d3m3 »

Ok. So the data is there, but the graph does not display in any browser I try (ie, firefox, safari).

The HTML for the page says:

Code: Select all

<td align="center" class="textInfo" colspan="2">
<img src="graph_image.php?action=edit&local_graph_id=457&rra_id=1" alt="">
</td>
So I tried : http://10.1.6.60/cacti/graph_image.php? ... 7&rra_id=1 and I get "The image “http://10.1.6.60/cacti/graph_image.php? ... 7&rra_id=1” cannot be displayed, because it contains errors." Is this a reasonable thing to do? The http logs say:

Code: Select all

[client 172.16.1.111] PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 23040 bytes) in /var/www/cacti/lib/data_query.php on line 607, referer: http://10.1.6.60/cacti/graphs.php?action=graph_edit&id=457
Allowed memory size of 8388608 bytes exhausted (tried to allocate 128 bytes)
[client 172.16.1.111] PHP Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 1000001 bytes) in /var/www/cacti/lib/rrd.php on line 129, referer: http://10.1.6.60/cacti/graphs.php?action=graph_edit&id=457
ERROR: the RRD does not contain an RRA matching the chosen CF
h1d3m3
Posts: 25
Joined: Mon Nov 17, 2003 1:15 am

Post by h1d3m3 »

well, I finally got my graph. I changed the graph template to use Average instead of Last (per a few forum suggestions) and the graph suddenly appears now.

very odd.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Yea, bump your PHP memory too and restart apache. It looks like it's using the default.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
h1d3m3
Posts: 25
Joined: Mon Nov 17, 2003 1:15 am

Post by h1d3m3 »

Did that. Thanks... So I have two questions about this:

1) What does "ERROR: the RRD does not contain an RRA matching the chosen CF " have to do with using the "last" value on the graph template?

2) Why can I not use derived for this? I'd rather see the delta values than the current values...for example I would rather see a graph that showed me a change from 10 to 30 (as a 20 spike) than the graph at 10 and then a change to 30. When I try to make the graph derived, I get NaN forever.

Thanks.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests