How to monitor server

To monitor server, you can use following sql statements and os commands:

mysqladmin extended -i100 -r
SHOW PROCESSLIST
SHOW VARIABLES
SHOW INNODB STATUS
vmstat 10
iostat -x 10
mpstat 10

mysqladmin extended-status