Changes

Jump to navigation Jump to search
34 bytes added ,  22:51, 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:
{{#/usr/bin
+
<source lang="languagename">#/usr/bin
    
while true
 
while true
Line 31: Line 31:  
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}}
+
done</source>.
80

edits

Navigation menu