percona-monitoring-plugins
percona-monitoring-plugins copied to clipboard
pmp-check-mysql-ts-count shows error message directly
Based on discussion below, showing error message directly will expose information: https://github.com/percona/percona-monitoring-plugins/issues/58
How to reproduce:
mysql> create table deadlocks(id int not null);
Query OK, 0 rows affected (0.01 sec)
# su -l nagios -c "env -i HOME=/usr/local/nagios /usr/local/nagios/libexec/pmp-check-mysql-ts-count"
ERROR 1054 (42S22) at line 1: Unknown column 'ts' in 'where clause'
UNK could not count deadlocks