Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 taking refuge in the Monastery: (8)
As of 2014-12-28 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (182 votes), past polls