User Tools

Site Tools


project:resourcemon

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
project:resourcemon [2016/10/13 00:17] 37.209.107.175project:resourcemon [2016/10/14 13:45] (current) 37.209.107.175
Line 54: Line 54:
 #off# @reboot      root /usr/local/bin/resource-mon #off# @reboot      root /usr/local/bin/resource-mon
 */5 *  * * * root /usr/local/bin/resource-mon */5 *  * * * root /usr/local/bin/resource-mon
-05 01 01 * * root find /var/log/resource-mon -name "????-??"    -mtime +-print0 | xargs -0r gzip +35 00 01 * * root find /var/log/resource-mon -name "????-??"       -mmin +30 -print0 | xargs -0r xz 
-05 01  * * * root find /var/log/resource-mon -name "????-??-??" -mtime +-print0 | xargs -0r gzip+35 00  * * * root find /var/log/resource-mon -name "????-??-??"    -mmin +30 -print0 | xargs -0r xz 
 +35  *  * * * root find /var/log/resource-mon -name "????-??-??T??" -mmin +30 -print0 | xargs -0r xz
 </file> </file>
  
Line 121: Line 122:
         echo "</aq>"         echo "</aq>"
         echo "</s>"         echo "</s>"
-    ) >> /var/log/resource-mon/$( date +%)+    ) >> /var/log/resource-mon/$( date +%FT%H )
  
     #echo $DATE R: $DC1 $DC2 $RDC12 T: $DC3 $DC4 $RDC34 S: $(( $DC1 + $DC3 )) $(( $DC2 + $DC4 )) L: $LOAD     #echo $DATE R: $DC1 $DC2 $RDC12 T: $DC3 $DC4 $RDC34 S: $(( $DC1 + $DC3 )) $(( $DC2 + $DC4 )) L: $LOAD
project/resourcemon.1476310662.txt.gz · Last modified: 2016/10/13 00:17 by 37.209.107.175