Cacti won't create an .rrd file

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
xorian
Posts: 2
Joined: Thu Jul 20, 2006 3:11 am

Cacti won't create an .rrd file

Post by xorian »

I was following the installation instructions (for windows) and had a few problems here and there, of which all have been solved, I think. But when I tried to create a graph, it totally didn't work.

Notice that I don't have Net-SNMP installed, since it was optional in the installation.

This is what I get from the debug file:

RRDTool Command:

C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="My Windows localhost - Processes" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="processes" \
DEF:a="C\:/apache2triad/htdocs/cacti/rra/my_windows_localhost_proc_15.rrd":proc:AVERAGE \
AREA:a#F51D30:"Running Processes" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf"

RRDTool Says:

The system cannot find the path specified.


I do know that the path of the DEF is wrong, but I don't know where to change it, nor do I know if that will fix my problem completely.

Edit:

Well, I'm still not quite sure of the path, if it's correct or not, but what I am sure of is that the .rrd file is simply not being created. I have no idea what's going wrong. I now installed Net-SNMP OPENXTRA since I couldn't find the windows package for Net-SNMP, but the OPENXTRA contains it, along with some other crap but that doesn't matter.

Edit:

Ok, a very very stupid mistake from me, I set the path to RRDTool incorrectly, but I still receive an error:

RRDTool Command:

C:\rrd\rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="My Windows localhost - Processes" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="processes" \
DEF:a="C\:/apache2triad/htdocs/cacti/rra/my_windows_localhost_proc_17.rrd":proc:AVERAGE \
AREA:a#F51D30:"Running Processes" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:a:MAX:"Maximum\:%8.0lf"

RRDTool Says:

ERROR: opening 'C:/apache2triad/htdocs/cacti/rra/my_windows_localhost_proc_17.rrd': No such file or directory

Now I don't have the slighest idea why the hell that doesn't work. Why doesn't it create an RRD file? Does it absolutely require Net-SNMP?
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Well, since you had the path wrong, you have to wait at least 1 polling cycle before the file will be created and at least 2 before you will see data.

Also, the rrdtool files will not be created if the device is showing a status other than up.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
pconrad
Posts: 19
Joined: Mon Jun 12, 2006 8:29 am

Post by pconrad »

I've got the same issue

DEF:a="C\:/Inetpub/cacti..........

It looks like a path issue.
Where does the path get configured?
"So Long, and thanks for all the fish!" DA
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

The "C\:" is normal with RRDtool. All colons must be escaped with a backslash "\".

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests