Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
LanX is Discipulus reciting "Springtime for Hitler" ?
[choroba]: erix could tell you how to do it in Postgres
[LanX]: NOOOOOOOOOOOOOOO not again
[chacham]: wow, mysql really is as bad as i thougt
[choroba]: completion?
[LanX]: That's what he usually does when MySQL is mentioned ;-)
[chacham]: the same thing could be achieved with a trigger
[LanX]: choroba yes
chacham shudders at the thought of using a trigger...so evil
LanX will need to find a Perl workaround ... :-|

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (10)
As of 2017-03-30 15:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (360 votes). Check out past polls.