Graphs disappeared after changing graph template

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

Moderators: Developers, Moderators

Post Reply
Guest

Graphs disappeared after changing graph template

Post by Guest »

I'm new to Cacti, so I'm not sure if this is expected behavior, but I wanted to change the color of "discards_in" on the Interface Errors/Discards graphs. I went to Templates -> Graph Templates, selected the graph item, changed its color and clicked Save.

Now, any graphs for Errors are gone. I see the name of the graph listed and it is a hyperlink, but no graph appears. From the manual, it sounds like changing a graph template should automatically apply to all associated graphs, but this doesn't seem to work.

If I go to Graph Management and click the title, then make no changes on the next page, but click Save, the graph will appear under the graph tree.

Unfortunately, I have almost 700 interfaces with Error graphs, so the manual per-graph fix is not really an option. Any suggestions on how to make this happen in bulk would be appreciated.

Thanks....
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Which Cacti version are you running? If you are running 0.8.5, read below. If you are running 0.8.4, you should upgrade to 0.8.5 and continue reading below.

The bad news is that it looks like you've been bitten by a bug... The good news is that I think this bug has been squashed. Check out the following thread for more details:

http://www.raxnet.net/board/viewtopic.php?t=3261

Luckily after applying the patch, there is a way to quickly "fix" your graphs. If you have any problems, I would recommend rolling back to your latest database backup though.

-Ian
Guest

Post by Guest »

I am indeed running 0.8.5 and was hit by the bug. I went into that template and re-saved all the applicable graph items. My graphs came back.

Thanks so for the help. You saved me a ton of time.
n9oah
Posts: 10
Joined: Mon Apr 21, 2003 6:23 pm
Location: Colorado
Contact:

Graph Template only graphs single data set.

Post by n9oah »

I got hit by this. Silly me tried to change a line1 to line2. Put on the patch and resaved everything. Graphs came back but now they only graph one data set. ugg...

Guess I am into recreating the template. Grumble.

Any thoughts would be appreciated.

bw.


/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title=" Vail - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=100 \
--lower-limit=0 \
--vertical-label="percent" \
DEF:a="/usr/local/apache2/htdocs/cacti-0.8.5/rra/_vail_cpu_system_155.rrd":cpu_system:AVERAGE \
DEF:b="/usr/local/apache2/htdocs/cacti-0.8.5/rra/_vail_cpu_system_155.rrd":cpu_system:AVERAGE \
DEF:c="/usr/local/apache2/htdocs/cacti-0.8.5/rra/_vail_cpu_system_155.rrd":cpu_system:AVERAGE \
DEF:d="/usr/local/apache2/htdocs/cacti-0.8.5/rra/_vail_cpu_system_155.rrd":cpu_system:AVERAGE \
DEF:e="/usr/local/apache2/htdocs/cacti-0.8.5/rra/_vail_cpu_system_155.rrd":cpu_system:AVERAGE \
LINE2:e#FF0000:"System" \
GPRINT:e:LAST:"Current\:%8.2lf %s" \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:e:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:e#00FF00:"User" \
GPRINT:e:LAST:"Current\:%8.2lf %s" \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:e:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:e#FF00FF:"Idle" \
GPRINT:e:LAST:"Current\:%8.2lf %s" \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:e:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:e#4668E4:"Wait" \
GPRINT:e:LAST:"Current\:%8.2lf %s" \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:e:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:e#942D0C:"Kernel" \
GPRINT:e:LAST:"Current\:%8.2lf %s" \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:e:MAX:"Maximum\:%8.2lf %s\n"
n9oah
Posts: 10
Joined: Mon Apr 21, 2003 6:23 pm
Location: Colorado
Contact:

Post by n9oah »

Doh! <head slap> I will never get used to this new format.

Had to go back into graph management on the graph and reset the data sources. (That's probably what you said.) I need a beer.

All good now. I got so deep in to 6.8 that I am really having a context switch problem.

bw.
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Theoretically templates should be seemless to the point where you don't ever have to worry about them. Unfortunately for this to happen, there is a lot of work that must take place behind the scenes. There are certain changes in when it comes to templates that require the code to loop through each attached graph and make the change. In my opinion this seems to lend itself to integrity problems or other anomolies down the road.

I have attempted to re-evalute my approach to templates lately, but my choices are definitely limited given the level of functionality I'd like to maintain.

-Ian
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest