|
|
| Author |
Message |
Guest
|
Posted: Fri Nov 14, 2003 7:47 am Post subject: Bug in cacti 0.8.4 - changing graph template |
|
|
First of all I must say it's a great tool and I use it for some time. Now I installed 0.8.4 and discovered some things:
I created a polling host and then added some graphs with template Interface - Traffic (bits/sec). Ok, next I wanted to change the graph template in Interface - Traffic (bits/sec, Total Bandwidth) - seemed to be ok. But when I looked at the graphs there was some things wrong: the graph won't display and the output of the debug contains:
ERROR: no rrdtool fetch output, you probably forgot to pass a valid data source
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--title="gw2 - Traffic - ****** (eth1)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
DEF:a="/var/www/html/cacti/rra/gw2_traffic_in_398.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/gw2_traffic_in_398.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdeff=b,8,* \
CDEF:cdefi=a,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In: 0 bytes\n" \
LINE1:cdeff#002A97:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out: 0 bytes"
Changing to other graph templates works fine, but to Interface - Traffic (bits/sec, Total Bandwidth) don't.
Next I deleted the graphs to create them again but I could't until I deleted the Data Source also, which I don't think is good.
And one more thing: when I delete a host from polling hosts I expect all data sources and graphs associated with it be deleted as well but that is not what is happening. I have to search for Data Sources associated with the host I deleted and remove them. |
|
| Back to top |
|
 |
Smite Guest
|
Posted: Fri Nov 14, 2003 2:06 pm Post subject: re: Bug in cacti 0.8.4 - changing graph template |
|
|
This thread should be moved to the Unstable Development forum.
I just had a similar experience, where I deleted a polling host, and although it is missing from all drop-down selection lists, the data sources and graphs are left behind and have to be cleaned by hand. I thought this worked in 0.8.3. It does seem broken now.
Additionally, if a deleted polling host had been placed on a graph tree, that remnant must be cleaned up by hand, as well. My recollection is that was always broken.
FWIW I am finally able to switch graph templates at will in the new version without having to fix the graph's data sources -- hooray! I could not replicate the problem switching to "bits/sec, Total Bandwidth." |
|
| Back to top |
|
 |
raX Lead Developer
Joined: 13 Oct 2001 Posts: 2234 Location: Carlisle, PA
|
Posted: Sun Nov 16, 2003 11:04 pm Post subject: Re: Bug in cacti 0.8.4 - changing graph template |
|
|
| Anonymous wrote: | | I created a polling host and then added some graphs with template Interface - Traffic (bits/sec). Ok, next I wanted to change the graph template in Interface - Traffic (bits/sec, Total Bandwidth) - seemed to be ok. But when I looked at the graphs there was some things wrong: the graph won't display and the output of the debug contains: |
The problem here is that you are changing to a graph template with more items, which require a data source to be selected. Cacti does not know which data source to use, since those items did not exist before. The easiest way to force Cacti to update this information is to go into the graph and re-select the data sources under "Graph Item Inputs" and click "Save". I tried this on my 0.8.4 installation, and it worked ok.
| Anonymous wrote: | | And one more thing: when I delete a host from polling hosts I expect all data sources and graphs associated with it be deleted as well but that is not what is happening. I have to search for Data Sources associated with the host I deleted and remove them. |
This probably should be added, but not for 0.8.4. The *easiest* way to delete all graphs and data sources associated with a particular host is to:
1) Go into "Data Sources" and select the host you want or filter by it.
2) Use the "Check all" box to select all of the data sources in your view
3) Click "Go" at the bottom right of the screen, and make sure to select the 3rd radio button on the following screen.
-Ian |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|