| Bug #41608 | Agent runs custom SQL data collection queries even though rule is not scheduled | ||
|---|---|---|---|
| Submitted: | 18 Dec 2008 22:56 | Modified: | 9 Jan 2015 10:06 |
| Reporter: | Andy Bang | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Enterprise Monitor: Agent | Severity: | S2 (Serious) |
| Version: | 2.0.1.7125 | OS: | Any |
| Assigned to: | Jan Kneschke | CPU Architecture: | Any |
| Tags: | mem_20_backlog | ||
[18 Dec 2008 22:56]
Andy Bang
[27 Feb 2009 17:47]
Gary Whizin
Bug council proposal: 1) put return type back in the xml 2) specify whether a counter or not 3) run an explain instead of running the stmt (if get error, then can't run it)
[27 Feb 2009 17:51]
Andy Bang
The problem is that accessing information_schema.triggers can be VERY expensive if you have lots of databases and tables. The workaround is to comment out the following lines in the items-mysql-monitor.xml file (or remove them):
<class>
<namespace>mysql</namespace>
<classname>trigger_with_select_star</classname>
<query><![CDATA[SELECT GROUP_CONCAT('\\\\\n* ', trigger_schema, '.', trigger_name ORDER BY trigger_schema, trigger_name) AS trigger_defn FROM information_schema.triggers WHERE UPPER(action_statement) LIKE '%SELECT *%']]></query>
</class>
