Hello,
I was looking for a way to utilize collectd's RRDtool writer plugin to write RRD files and utilize them in Cacti. I've followed the instructions at http://docs.cacti.net/manual:087:8_rrdt ... ernal_rrds for one of the data sources, and I can see the graph now. It has the memory usage data, but it doesn't actually show the lines/colors on the graph.
As you can see near the bottom, it shows the memory usage numbers, but where the graph itself should be, it's just blank as if there is no data.
To reiterate, I'm not using any poller (cron job is disabled and I've turned off polling within the settings) per the document linked above. Also not using SNMP per the same document.
I've also attached cacti.log snippets with debug mode turned on in the settings. The first is what comes up when I load the graph. The second is what comes up when I go into the data source settings with data source debug turned on. The third is the output in the data source debug box.
Any ideas would be appreciated... At least I'm not getting NaN anymore =)
In case it helps, I've also added the output of rrdtool info /var/lib/cacti/(hostname)/memory/memory-usage.rrd which is the file that I've created the datasource, graph, etc for.
Graph issues with collectd
Moderators: Developers, Moderators
-
- Posts: 2
- Joined: Mon Jun 25, 2012 6:03 am
Graph issues with collectd
- Attachments
-
- rrdtoolinfo.txt
- (3.39 KiB) Downloaded 203 times
-
- datasourceeditordebugmode.txt
- Output in data source editor from 'data source debug mode'
- (384 Bytes) Downloaded 70 times
-
- datasourcedebug.txt
- Debug cacti.log during loading the data source editor with 'data source debug mode' turned on
- (8.41 KiB) Downloaded 90 times
-
- graphloaddebug.txt
- Debug cacti.log during graph loading
- (10.45 KiB) Downloaded 80 times
-
- Posts: 2
- Joined: Mon Jun 25, 2012 6:03 am
Re: Graph issues with collectd
As an update, I managed to figure out the problem.
The guide I followed was put together in a hurry apparently, and so it wasn't entirely clear to this new user, that you have to have both an AREA and a LEGEND (GPRINT). When I went to replicate the actual pictures from the guide, it did work, but when I initially set it up, I only had the LEGEND (GPRINT) sections.
For googlers: To make it look like mine does, you have to make at least 2 graph items. 1 that is either AREA, STACK, or LINE[1-3], and one that is LEGEND. The LEGEND one automatically turns into the Current, Average, and Maximum GPRINTs you see in the screen shot above.
The guide I followed was put together in a hurry apparently, and so it wasn't entirely clear to this new user, that you have to have both an AREA and a LEGEND (GPRINT). When I went to replicate the actual pictures from the guide, it did work, but when I initially set it up, I only had the LEGEND (GPRINT) sections.
For googlers: To make it look like mine does, you have to make at least 2 graph items. 1 that is either AREA, STACK, or LINE[1-3], and one that is LEGEND. The LEGEND one automatically turns into the Current, Average, and Maximum GPRINTs you see in the screen shot above.
Who is online
Users browsing this forum: No registered users and 0 guests