RRDs created in wrong directory

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

Moderators: Developers, Moderators

Post Reply
supine
Posts: 4
Joined: Mon Dec 21, 2009 6:31 am

RRDs created in wrong directory

Post by supine »

Trying to figure out an issue with an existing Cacti installation.

Linux, version 0.8.6j

Cacti is installed in /usr/local/cacti

Existing hosts / graphs update fine.

When I add a new host and add graphs the RRD's are created in /var/lib/cacti and not /usr/local/cacti/rra ?!?

"Graph Management" shows the correct location. I can't find anywhere in the code that's not using rra_path.

Any other ideas?
tapke
Posts: 2
Joined: Tue Dec 22, 2009 4:05 am

Post by tapke »

I had the same problem. Just added links to the directories.
Not a solution, but as a workaround worked fine.
supine
Posts: 4
Joined: Mon Dec 21, 2009 6:31 am

Post by supine »

tapke wrote:I had the same problem. Just added links to the directories.
Not a solution, but as a workaround worked fine.
Yeah, I've resorted to blowing away the errant directory and symlinking it to the correct place.

The poller was quite happily reporting updating non-existent RRDs without displaying any error.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

It will report the errors if you remove the "> /dev/null" by e.g. "> /your/cacti/path/log/poller.log" in crontab
R.
supine
Posts: 4
Joined: Mon Dec 21, 2009 6:31 am

Post by supine »

gandalf wrote:It will report the errors if you remove the "> /dev/null" by e.g. "> /your/cacti/path/log/poller.log" in crontab
R.
So it quite happily reports creating them in the wrong spot and then updating them in the right spot. WTF

Code: Select all

12/22/2009 01:55:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /var/lib/cacti/swext_traffic_in_1484.rrd --step 300   DS:traffic_in:COUNTER:600:0:100000000  DS:traffic_out:COUNTER:600
:0:100000000  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:MIN:0.5:1:600  RRA:MIN:0.5:6:700  RRA:MIN:0.5:24:775  RRA:MIN: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  RRA:LAST:0.5:1:600  RRA:LAST:0.5:6:700  RRA:LAST:0.5:24:775  RRA:LAST:0.5:288:797

12/22/2009 01:55:12 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool update /usr/local/cacti/rra/swext_traffic_in_1484.rrd --template traffic_out:traffic_in N:1008808796:3420880488
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

rrdtool works this way, sorry
R.
supine
Posts: 4
Joined: Mon Dec 21, 2009 6:31 am

Post by supine »

gandalf wrote:rrdtool works this way, sorry
R.
Say what?

You're saying that the use of the wrong directory "/var/lib/cacti/" for RRD creation is rrdtool's fault? :o
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

supine wrote:
gandalf wrote:rrdtool works this way, sorry
R.
Say what?

You're saying that the use of the wrong directory "/var/lib/cacti/" for RRD creation is rrdtool's fault? :o
No, no. I referred to the way output is written to stdout or stderr; that's all
R
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest