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....
Graphs disappeared after changing graph template
Moderators: Developers, Moderators
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
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
Graph Template only graphs single data set.
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"
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"
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
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
Who is online
Users browsing this forum: No registered users and 1 guest