Changes

From SME Server
Jump to navigationJump to search
1 byte removed ,  21:53, 26 November 2015
no edit summary
Line 18: Line 18:  
1.Prepare the collection of the relevant parameters that you want to monitor ( in this case, http stats )
 
1.Prepare the collection of the relevant parameters that you want to monitor ( in this case, http stats )
 
create a shell script:
 
create a shell script:
<source lang="languagename">#/usr/bin
+
 
 +
<source lang="html4strict">#/usr/bin
    
while true
 
while true
Line 31: Line 32:  
echo $OUTPUT \'$DAY\' | awk  '{print "INSERT INTO performance (mem_used, process_size, processors_used,period) VALUES  ( "$5", "$10", "$13", "$14" );"}' | mysql --user=username --password=password database_name
 
echo $OUTPUT \'$DAY\' | awk  '{print "INSERT INTO performance (mem_used, process_size, processors_used,period) VALUES  ( "$5", "$10", "$13", "$14" );"}' | mysql --user=username --password=password database_name
 
sleep 120
 
sleep 120
done</source>.
+
done</source>
80

edits

Navigation menu