Graphs are working...now I am getting wierd data

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
Btn
Posts: 14
Joined: Wed Jun 30, 2004 10:53 am

Graphs are working...now I am getting wierd data

Post by Btn »

Well thanks to a lot of help from melchandra, I am finally able to retrieve and graph data from Solaris systems running net-snmp. I am noticing some wierdness, tho.

1 - The file system names on the graph appear to be truncated, i.e. here is a snippet of some Oracle file systems I am monitoring:

/oracle/redo
/oracle/export
/oracle/oraclev1/j046
/oracle/oraclev1/9999
/oracle/oraclev1/dev
/oracle/oraclev1/9999d
/oracle/oraclev1/7150

But the graphs for this system show me 8 graphs all with the title "/oracle/oraclev1 " Is there some sort of character maximum going on here? I have these entries in my snmpd.conf:


disk / 80%
disk /usr 80%
disk /var 80%
disk /var/run 80%
disk /tmp 80%
disk /utils 80%
disk /home 80%
disk /export 80%
disk /BATCH 80%
disk /usr/local 80%
disk /oracle/redo 80%
disk /oracle/export 80%
disk /oracle/oraclev1/j046 80%
disk /oracle/oraclev1/7150 80%
disk /oracle/oraclev1/dev 80%
disk /oracle/oraclev1/9999 80%
disk /oracle/oraclev1/9999d 80%

( I don't know why I see 8 graphs named "/oracle/oraclev" when there are only 7 with oracle in the name...)

2 - The data being returned is not correct for all of the file systems. The graph for "/ " tells me that only 32k is being used. That is way to low to make sense, and sure enough when I checked on the system / is actually using 400 megs. Why is Cacti fibbing to me?

So close...
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

The graph names might be truncated. Look in the console -> Cacti Settings. Pick the visual tab, and you will see the lengths. Adjust them to your content. Otherwise, check the graph title on the individual graphs - make sure the template is set so that this is a per-graph option.

On the 32k/400meg - make sure that you aren't translating the input through any cdef's. Check your graph template and make sure you aren't doing a bits -> bytes translation or anything. Post the source from the graph if you can (view it under graphs, click the source button underneath it)
Dave
Guest

Post by Guest »

melchandra wrote:The graph names might be truncated. Look in the console -> Cacti Settings. Pick the visual tab, and you will see the lengths. Adjust them to your content. Otherwise, check the graph title on the individual graphs - make sure the template is set so that this is a per-graph option.
I looked at the settings, I wasnt sure which one applies to each graph name, but the only one that was lower than what I expect to see was "Data Queries - Maximum Field Length", which was 15. I changed it to 30 and reloaded the Cacti page and didnt see any difference.

I looked at the individual graphs and I think they are set to per-graph...is it:

Graph templates/ucd-net Availalbe Disk space/Use Per-Graph Value (Ignore this Value)

This one is checked on. Why do all of them say (Ignore this Value) after the check box?
On the 32k/400meg - make sure that you aren't translating the input through any cdef's. Check your graph template and make sure you aren't doing a bits -> bytes translation or anything. Post the source from the graph if you can (view it under graphs, click the source button underneath it)
I didnt see anywhere that said anything about translation, the graph templates page is pretty cryptic (to me, at least). Here is the source from the one that is not reporting the correct size:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Vision01 - Disk Space - /" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
DEF:a="/opt/cacti/cacti-0.8.5a/rra/vision01_hdd_free_52.rrd":hdd_used:AVERAGE \
DEF:b="/opt/cacti/cacti-0.8.5a/rra/vision01_hdd_free_52.rrd":hdd_free:AVERAGE \
CDEF:cdefa=a,1024,* \
CDEF:cdefe=b,1024,* \
CDEF:cdefi=TIME,1090263259,GT,a,a,UN,0,a,IF,IF,TIME,1090263259,GT,b,b,UN,0,b,IF,IF,+,1024,* \
AREA:cdefa#F51D30:"Used" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
STACK:cdefe#002A97:"Available" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:cdefi#000000:"Total" \
GPRINT:cdefi:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefi:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s"
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

The length of the graphs is the last row under the visual tab, it's called "Data Sources - Maximum Title Length". I have mine set to 60. The "ignore this value" means if you check the box, then the templated item will NOT be applied to the graphs using that template, thus the value is ignored. If they are all still the same, try un-checking the check-box for "Title" under the graph template, then post what the title's are for the differant graps (you'll have to go to graph management and get each graph for this)

32k/400M
You most definatly have some sort of weird conversion going on (all the cdef / 1024 stuff) Go the the "Graph Templates" and select the template for the disk graphs. Click on "Item #1" at the top under "Graph Template Items" Make sure the 5th row, "CDEF Function" is set to none.

Hopefully that makes some fixes it. If it doesn't, but looks differant that what you had before, re-post the graph source.

Edit: It also occured to me that you might want to check your Data Template - make sure it's Type is set to "Gauge"
Dave
Guest

Post by Guest »

melchandra wrote:The length of the graphs is the last row under the visual tab, it's called "Data Sources - Maximum Title Length". I have mine set to 60. The "ignore this value" means if you check the box, then the templated item will NOT be applied to the graphs using that template, thus the value is ignored. If they are all still the same, try un-checking the check-box for "Title" under the graph template, then post what the title's are for the differant graps (you'll have to go to graph management and get each graph for this)

32k/400M
You most definatly have some sort of weird conversion going on (all the cdef / 1024 stuff) Go the the "Graph Templates" and select the template for the disk graphs. Click on "Item #1" at the top under "Graph Template Items" Make sure the 5th row, "CDEF Function" is set to none.

Hopefully that makes some fixes it. If it doesn't, but looks differant that what you had before, re-post the graph source.

Edit: It also occured to me that you might want to check your Data Template - make sure it's Type is set to "Gauge"
Ugh, I have a mess now. I made all the changes your mentioned.

Now my graphs for this system dont have any color, just a black line running over the chart.

And the changes I made didnt do anything to the titles or the incorrect file system sizes.

Here is the source for the one with incorrect sizes after the changes:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Vision01 - Disk Space - /" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
DEF:a="/opt/cacti/cacti-0.8.5a/rra/vision01_hdd_free_52.rrd":hdd_used:AVERAGE \
DEF:b="/opt/cacti/cacti-0.8.5a/rra/vision01_hdd_free_52.rrd":hdd_free:AVERAGE \
CDEF:cdefb=a,1024,* \
CDEF:cdeff=b,1024,* \
CDEF:cdefi=TIME,1090266475,GT,a,a,UN,0,a,IF,IF,TIME,1090266475,GT,b,b,UN,0,b,IF,IF,+,1024,* \
AREA:a#F51D30:"Used" \
GPRINT:cdefb:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefb:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefb:MAX:"Maximum\:%8.2lf %s\n" \
STACK:b#002A97:"Available" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:cdefi#000000:"Total" \
GPRINT:cdefi:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefi:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s"

Here is one of the graphs that has a title of oracle/oraclev1. I am guessing it is /oracle/oraclev1/dev based on the size, but I am not sure:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Vision01 - Disk Space - /oracle/oraclev" \
--rigid \
--base=1024 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes" \
DEF:a="/opt/cacti/cacti-0.8.5a/rra/vision01_hdd_free_50.rrd":hdd_used:AVERAGE \
DEF:b="/opt/cacti/cacti-0.8.5a/rra/vision01_hdd_free_50.rrd":hdd_free:AVERAGE \
CDEF:cdefb=a,1024,* \
CDEF:cdeff=b,1024,* \
CDEF:cdefi=TIME,1090266560,GT,a,a,UN,0,a,IF,IF,TIME,1090266560,GT,b,b,UN,0,b,IF,IF,+,1024,* \
AREA:a#F51D30:"Used" \
GPRINT:cdefb:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefb:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefb:MAX:"Maximum\:%8.2lf %s\n" \
STACK:b#002A97:"Available" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:cdefi#000000:"Total" \
GPRINT:cdefi:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefi:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s"
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

What I told you to do the Item #1, changing the cdef function - you have to do that to all the other the other items too. Except for the one's that say "Total All data sources, Multiply by 1024", change those to be just "Total All Data Sources". I'm not sure why you would want that on a Disk Usage graph though. I apoligize, I should have said that before, I forget to tell you that you have to do it to all the items.
Dave
Btn
Posts: 14
Joined: Wed Jun 30, 2004 10:53 am

Post by Btn »

I made the changes to all of the items, my graphs are gone now (back to a link to the source) and my apache logs are full of this:


ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'

I think I need a reset button ...
melchandra
Cacti User
Posts: 311
Joined: Tue Jun 29, 2004 12:52 pm
Location: Indiana

Post by melchandra »

hmmm, interesting. Live and learn I guess - sorry I was not able to be of more help to you. Hopefully you'll figure it out soon.
Dave
Btn
Posts: 14
Joined: Wed Jun 30, 2004 10:53 am

Post by Btn »

Still here, have not had time mess with this lately but I am back to revisit my favorite headache.

:D

Is there any way to reset the graph templates to defaults? I fear I have a mess now and am not sure what the default settings should be. My apache logs are full of this:

ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'
ERROR: can't parse ':AVERAGE:Average\:%8.2lf %s'


Any ideas? I even tried reinstalling Cacti, but I am seeing the same information (are these values stored in the RRD database? Do I have to delete it and start over?)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests