Mysql query to return server load average
4 answers
You might want to look into this statement:
http://dev.mysql.com/doc/refman/5.1/en/show-status.html
SHOW [GLOBAL | SESSION] STATUS [LIKE 'pattern' | WHERE expr]
SHOW STATUS provides information about the state of the server. This information can also be obtained using the mysqladmin extended status command. How, if present, indicates which variable names to match. WHERE can be specified for row selection using more general conditions, as discussed in Section 20.28, "Extensions to SHOW Statements". This expression does not require any privilege. It only requires the ability to connect to the server.
+1
source to share