automatically create directory for RRDs

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

Moderators: Developers, Moderators

Post Reply
nate450
Posts: 17
Joined: Mon Mar 13, 2006 1:45 pm
Location: Seattle, WA

automatically create directory for RRDs

Post by nate450 »

For each host I store the RRDs in a directory named after the host so I can call the files easier using outside scripts (more organized).

I modified the cacti source in lib/functions.php to automatically append the directory to the rra/rrd path when creating a data source. Right now what I do is I go in and create the directory by hand but it'd be nice if I could get cacti to create the directory for me. Not knowing PHP I was wondering if anyone could pass along some info that would help me track down what I could put in the source so that cacti would automatically create the directory tree specified in the path for the RRD before creating the RRD file itself?

thanks
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Ther has been an unofficial patch by browniebraun for that goal.
It is planned to implement a similar feature for cacti in upcoming revisions.
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests