Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17783

How to find "recently" modified files? (ramdisk, observium, tempfs)

$
0
0

I'm deploying Observium to monitor gear. YAY. Now, it automatically creates an RRD file for every single thing it finds, and I really don't care about all the access ports. If there's a way to just not create the RRD file for those, awesome. Otherwise...

I want to dump the RRD files to a ramdisk... but only the ones that are being updated. Because I don't have unlimited gigabytes. And insert a softlink to the RRD files that are not being updated - to maintain prettyness really, otherwise it shows an ugly red box and "graph not available" or somestring.

Is there an easy way to say

  • find files
    • Recently modified (define "recent")
    • Move recents to /mnt/observium-RRD/
    • Symlink non-recents

Thing is, if the server is shut down for a day I can't just say

find -type f -mmin -20 -print0 | xargs wharggleblargg 

Know what I mean?

submitted by haxcess
[link] [4 comments]

Viewing all articles
Browse latest Browse all 17783

Trending Articles