no data after change graph template

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

Moderators: Developers, Moderators

liung
Posts: 47
Joined: Mon Aug 18, 2008 3:28 am

no data after change graph template

Post by liung »

I need more details on my network state , so I change some query's graph template . Then there comes out problem .
When I change my graph template (Interface - Traffic (bits/sec)) to (Interface - Traffic (bits/sec, 95th Percentile)) , the 95th percentile have no data , when I create a new graph use (Interface - Traffic (bits/sec, 95th Percentile)) template , the data comes out , did I miss anything ?
Attachments
the graph that change graph template
the graph that change graph template
no data.jpg (35.64 KiB) Viewed 4601 times
new graph use the template to create
new graph use the template to create
2.jpg (31.51 KiB) Viewed 4603 times
Last edited by liung on Fri Jan 23, 2009 10:03 pm, edited 3 times in total.
liung
Posts: 47
Joined: Mon Aug 18, 2008 3:28 am

Post by liung »

Any advice ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please edit the failing graph from graph management. The bandwidth graph template adds a complex COMMENT statement I want to see
Reinhard
liung
Posts: 47
Joined: Mon Aug 18, 2008 3:28 am

Post by liung »

Sorry for my poor knowledge . I didn't find where to edit the graph.

I change my graph template to 95th template then go to graph management , as the picture following , can you tell me where did I do wrong ?

Thanks !!
Attachments
change my graph template
change my graph template
2.JPG (62.45 KiB) Viewed 4520 times
edit my graph template
edit my graph template
1.JPG (160.49 KiB) Viewed 4523 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

I was not asking precise enough, but you did it correctly. I only need the lower part of the picture!
Reinhard
liung
Posts: 47
Joined: Mon Aug 18, 2008 3:28 am

Post by liung »

so sorry for my mistake .

Do you mean here ?

RRDTool Command:

/usr/local/rrdtool-1.3.0/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="pcrscdbp - Traffic - 192.168.37.213 (IBM 10/100 Ethe)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/pcrscdbp_traffic_in_1543.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/pcrscdbp_traffic_in_1543.rrd":traffic_in:MAX \
DEF:c="/var/www/html/cacti/rra/pcrscdbp_traffic_in_1543.rrd":traffic_out:AVERAGE \
DEF:d="/var/www/html/cacti/rra/pcrscdbp_traffic_in_1543.rrd":traffic_out:MAX \
CDEF:cdefa=a,8,* \
CDEF:cdefd=b,8,* \
CDEF:cdefe=c,8,* \
CDEF:cdefh=d,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefh:MAX:"Maximum\:%8.2lf %s\n" \
COMMENT:"\n" \
HRULE:0#FF0000FF:"95th Percentile" \
COMMENT:"(0 mbit in+out)"

RRDTool Says:

OK
Attachments
12.JPG
12.JPG (109.86 KiB) Viewed 4490 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Hmm, this requires more analysis on my side.
I _know_ that doing such a change on graph templates causes problems. But I don't know by now the root cause.
Please try the following:
Visit the Graph at Graph management, check it and select "Change Graph Template". Not sure this will help, but it's worth a try
Reinhard
liung
Posts: 47
Joined: Mon Aug 18, 2008 3:28 am

Post by liung »

:( no help...
dhost
Posts: 11
Joined: Sun Jan 23, 2005 12:48 pm

Template change

Post by dhost »

I have the same problem -- changed graph template to use 95th percentile and only 2 graphs are reflected properly. If I stumble across a fix for this issue I'll post my steps.
dhost
Posts: 11
Joined: Sun Jan 23, 2005 12:48 pm

Change Graph Template to 95th Percentile

Post by dhost »

During the course of the day some graphs are starting to show 95th percentile -- no changes made, so not sure why it happened but things are starting to get sorted correctly.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Well, only the red line was missing?
Using this graph template, this is unfortunately detected quite often. The HRULE is above the topmost value. rrdtool does not take HRULE into account when autoscaling
Reinhard
liung
Posts: 47
Joined: Mon Aug 18, 2008 3:28 am

Post by liung »

Sorry for several days offline .

Yes , just the red line is missing .
After several days away , there still do not come out the 95th percentile on my graph :(
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Oops, I just verified, that the number for 95th is 0. So my approach fails. This must be due to changing the graph template. You may drop the graph, preserving the data sources. Then, please recreate a new one, this time specifying the correct 95th percentile template. Now you may associate the preserved data sources. This way, it should be fine.
Please verify
Reinhard
liung
Posts: 47
Joined: Mon Aug 18, 2008 3:28 am

Post by liung »

I have tried this way several days ago , and it really works . The problem is that it is a little hard for me to complete this work , because I have hundreds of pictures :( . And I am a lazy guy :wink:

Now it seems only this way can get it , I will do .

Thanks for yours help .
bigfatdonny
Posts: 6
Joined: Wed Feb 04, 2009 11:39 am

Post by bigfatdonny »

gandalf wrote:This must be due to changing the graph template. You may drop the graph, preserving the data sources. Then, please recreate a new one, this time specifying the correct 95th percentile template. Now you may associate the preserved data sources. This way, it should be fine.
I can verify that this worked for me. I was having the same problem...no 95th percentile line, and the legend value for 95th percentile was zero. After following gandalf's procedure above, it's working perfectly.

Thanks, gandalf!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests