Question about the RRDTOOL functions
Moderators: Developers, Moderators
This is the nicest looking interface for RRDTOOL by far. Unfortunately, even with existing .RRD data sources and not using the CMD.PHP for data collection, I'm not getting any graphs. Are the graph*.php scripts calling the RRDTOOL executable as an external command and running it against the DS in the .RRD ? I know my RRDTOOL installation is OK. Many thanks.
It is very possible to use cacti with existing .rrd files not gathered via cmd.php. You must however create data sources for them in cacti.
Basically for each data source you already have; you must add a new data source in cacti for it. Go to "Data Sources" on the menu, and "Add". Enter any name < 19 characters in the name field. Then fill in the next two fields with information specific to your .rrd file. You may omit the remaining fields since cacti will not be gathering data for these data sources. Make sure you uncheck "Data Source Currently Active" though at the bottom of the page.
-Ian
Basically for each data source you already have; you must add a new data source in cacti for it. Go to "Data Sources" on the menu, and "Add". Enter any name < 19 characters in the name field. Then fill in the next two fields with information specific to your .rrd file. You may omit the remaining fields since cacti will not be gathering data for these data sources. Make sure you uncheck "Data Source Currently Active" though at the bottom of the page.
-Ian
yes, it's been set up like that, per your earlier post, but since I only have to use the graphing function and no cmd.php (since I'm integrating the .RRD files from MRTG using ds0 and ds1. After I add this source, BTW, I go back into the datsource config and see the command "RRD Create" up on top. Seems like I wouldn't want to do that with an existing .RRD file. See below -
/rrdtool create
/mrtg/rrdtool/Httptest/yahoo_fetch.rrd
--step 300
DS:ds1:GAUGE:600:0:1000
RRA:AVERAGE:0.5:1:600
RRA:AVERAGE:0.5:6:700
RRA:AVERAGE:0.5:24:775
RRA:AVERAGE:0.5:288:797
RRA:MAX:0.5:1:600
RRA:MAX:0.5:6:700
RRA:MAX:0.5:24:775
RRA:MAX:0.5:288:797
Not really an issue, though, because it seems like the RRDTOOL exec doesn't get called correctly, either here or in graphing.
Graph ouput looks like this -
c:/rrdtool graph -
--imgformat=PNG
--start="-86400"
--title="yahoo_fetch"
--rigid
--base=1000
--height=120
--width=500
--alt-autoscale
--vertical-label="ms"
DEF:f8d78622277c4e="/mrtg/rrdtool/HttpTest/yahoo_fetch.rrd":ds1:LAST
CDEF:cdeff8d78622277c4e=f8d78622277c4e,,
AREA:cdeff8d78622277c4e#0D006A:"Yahoo Page Fetch Timesn"
Many thanks for your help on this!
/rrdtool create
/mrtg/rrdtool/Httptest/yahoo_fetch.rrd
--step 300
DS:ds1:GAUGE:600:0:1000
RRA:AVERAGE:0.5:1:600
RRA:AVERAGE:0.5:6:700
RRA:AVERAGE:0.5:24:775
RRA:AVERAGE:0.5:288:797
RRA:MAX:0.5:1:600
RRA:MAX:0.5:6:700
RRA:MAX:0.5:24:775
RRA:MAX:0.5:288:797
Not really an issue, though, because it seems like the RRDTOOL exec doesn't get called correctly, either here or in graphing.
Graph ouput looks like this -
c:/rrdtool graph -
--imgformat=PNG
--start="-86400"
--title="yahoo_fetch"
--rigid
--base=1000
--height=120
--width=500
--alt-autoscale
--vertical-label="ms"
DEF:f8d78622277c4e="/mrtg/rrdtool/HttpTest/yahoo_fetch.rrd":ds1:LAST
CDEF:cdeff8d78622277c4e=f8d78622277c4e,,
AREA:cdeff8d78622277c4e#0D006A:"Yahoo Page Fetch Timesn"
Many thanks for your help on this!
First of all, you can ignore the 'create' command you see when editing a data source. This command will only be called if the data source is active; and even if it was active since those .rrd files already exist, nothing would be created.
I take it 'c:/rrdtool' is the correct path to rrdtool? I am not sure why the data source is showing a different path. If the path 'c:/rrdtool' is not correct make sure to check the 'rrdtool Binary Path' under 'cacti Settings'.
Also, one more thing. At first glance it does not appear that graph source you pasted would create a valid graph. The line below doesn't look right:
CDEF:cdeff8d78622277c4e=f8d78622277c4e,,
To get rid of this in cacti go to 'Graphs', and select 'Edit Graph Items' next to the graph. Then click the first item (there only appears to be one). Under 'CDEF Function', select 'None'. That may also help.
-Ian
I take it 'c:/rrdtool' is the correct path to rrdtool? I am not sure why the data source is showing a different path. If the path 'c:/rrdtool' is not correct make sure to check the 'rrdtool Binary Path' under 'cacti Settings'.
Also, one more thing. At first glance it does not appear that graph source you pasted would create a valid graph. The line below doesn't look right:
CDEF:cdeff8d78622277c4e=f8d78622277c4e,,
To get rid of this in cacti go to 'Graphs', and select 'Edit Graph Items' next to the graph. Then click the first item (there only appears to be one). Under 'CDEF Function', select 'None'. That may also help.
-Ian
Who is online
Users browsing this forum: No registered users and 0 guests