Check mysql slow queries
Posted
by
Rafal Kaminski
on Server Fault
See other posts from Server Fault
or by Rafal Kaminski
Published on 2012-10-29T21:11:55Z
Indexed on
2012/10/29
23:04 UTC
Read the original article
Hit count: 297
Is it possible to monitoring mysql like:
- if some queries is run more then 300 seconds - it will be warnings
- if some queries is run more then 500 seconds - it will be critical
I tried:
/usr/lib/nagios/plugins/check_mysql_health --hostname localhost --username icinga --password XXX --mode slow-queries --warning 300
But is show only rate slow_queries/per second :( Do you have some idea how i can monitoring sth. like i want?
Thank you for help.
Br,
© Server Fault or respective owner