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
Next revision
Previous revision
project:resourcemon [2016/10/12 23:54] 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 74: Line 75:
 </file> </file>
  
-  * extensive load / network i/o / application performance mapping+  * extensive load / network & disk i/o / application performance mapping
  
 <file txt /usr/local/bin/resource-mon> <file txt /usr/local/bin/resource-mon>
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
Line 131: Line 132:
 done done
 </file> </file>
 +
 +<code>
 +chmod 755 /usr/local/bin/resource-mon
 +bash -n 
 +/usr/local/bin/resource-mon &
 +</code>
  
project/resourcemon.1476309275.txt.gz · Last modified: 2016/10/12 23:54 by 37.209.107.175