percona-monitoring-plugins icon indicating copy to clipboard operation
percona-monitoring-plugins copied to clipboard

pmp-check-mysql-ts-count shows error message directly

Open ShahriyarR opened this issue 7 years ago • 0 comments

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

ShahriyarR avatar Aug 14 '17 14:08 ShahriyarR