Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Resizing MRTG (RRDTool) logs en-masse

by jwkrahn (Monsignor)
on Nov 29, 2010 at 23:19 UTC ( #874389=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @rrds = grep { /.*rrd$/ && -f "$logsdir/$_" } readdir DIR;
    
  2. or download this
            $cmd = qq|$mv resize.rrd $logsdir/$rrd|;
            print "\tRenaming resized file, executing $cmd\n";
            system($cmd) == 0 or die "Could not execute $cmd:$!\n";
    
  3. or download this
            print "\tRenaming resized file, executing $cmd\n";
            rename 'resize.rrd', "$logsdir/$rrd" or die "Could not rename 
    +resize.rrd:$!\n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://874389]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2015-07-03 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (56 votes), past polls