pmp-check-mysql-deadlocks table doesn't exist

I’m testing nagios plugins, when I run pmp-check-mysql-deadlocks -H mytest-db -l nagios -p passwod
ERROR 1146 (42S02) at line 1: Table ‘percona.deadlocks’ doesn’t exist
UNK could not count deadlocks

How does the table get created? which database should the table be created?

thanks
Wolf

The pmp-check-mysql-deadlocks plugin pulls data from a table that pt-deadlock-logger creates and logs to (http://www.percona.com/doc/percona-monitoring-plugins/1.0/nagios/pmp-check-mysql-deadlocks.html#description).

So you would first need to get pt-deadlock-logger up and running, at which point the table will be created (http://www.percona.com/doc/percona-toolkit/2.1/pt-deadlock-logger.html#cmdoption-pt-deadlock-logger–dest) and then you should be able to get pmp-check-mysql-deadlocks working at that point.