remove *.rrd files in /rra directory

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
alexeyk
Posts: 2
Joined: Thu Aug 13, 2009 1:20 pm

remove *.rrd files in /rra directory

Post by alexeyk »

Hi all!
When i create some data sources, a new .rrd file adds in /rra directory.
for example:

-rw-r--r-- 1 cacti cacti 47992 Aug 13 19:55 localhost_ping_8.rrd

when I remove this data sources from web interface file localhost_ping_8.rrd still exist in my /rra directory. How I can remove that file from disk, by my web interface?
alexeyk
Posts: 2
Joined: Thu Aug 13, 2009 1:20 pm

Post by alexeyk »

P.S.
When I removed graph, I used:
"Delete all data sources referenced by these graphs"
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

The rrdclean plugin will do this job for you, and help you find old redundant rrd files.

In a normal system, the web interface doesn't have permission to write to the rra/ directory. I'm not sure if it would delete the files even then though.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Deviloper
Cacti User
Posts: 256
Joined: Tue Jul 07, 2009 8:03 am

Post by Deviloper »

No, It would not delete the files.
Cacti is very misleading in this case.

Just remove no longer "updated" files manuelly... easiest way sort by last change date... delete... in a explorer-style ftp-scp or whatever tool
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Deviloper wrote:No, It would not delete the files.
Cacti is very misleading in this case.

Just remove no longer "updated" files manuelly... easiest way sort by last change date... delete... in a explorer-style ftp-scp or whatever tool
There have been issues (noatime) where this is misleading as well. RRDClean will work around this and delete files through the poller (who as the correct permissions as he created the files :wink: )
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests