Buy Percona ServicesBuy Now!


pmp-check-mysql-replication-delay - Alert when MySQL replication becomes delayed.


Usage: pmp-check-mysql-replication-delay [OPTIONS]
  -c CRIT         Critical threshold; default 600.
  --defaults-file FILE Only read mysql options from the given file.
                  Defaults to /etc/nagios/mysql.cnf if it exists.
  -H HOST         MySQL hostname.
  -l USER         MySQL username.
  -p PASS         MySQL password.
  -P PORT         MySQL port.
  -S SOCKET       MySQL socket file.
  -s SERVERID     MySQL server ID of master, if using pt-heartbeat table.
  -T TABLE        Heartbeat table used by pt-heartbeat.
  -u              Use UTC time to count the delay in case pt-heartbeat is run
                  with --utc option.
  -w WARN         Warning threshold; default 300.
  --help          Print help and exit.
  --version       Print version and exit.
Options must be given as --option value, not --option=value or -Ovalue.
Use perldoc to read embedded documentation with more details.


This Nagios plugin examines whether MySQL replication is delayed too much. By default it uses SHOW SLAVE STATUS, but the output of the Seconds_behind_master column from this command is unreliable, so it is better to use pt-heartbeat from Percona Toolkit instead. Use the -T option to specify which table pt-heartbeat updates. Use the -s option to specify the master’s server_id to compare against; otherwise the plugin reports the maximum delay from any server.


This plugin executes the following commands against MySQL:

  • SELECT from the pt-heartbeat table.

This plugin executes no UNIX commands that may need special privileges.


Percona Monitoring Plugins pmp-check-mysql-replication-delay 1.0.5

Table Of Contents

Previous topic


Next topic


Visit Percona Store

General Inquiries

For general inquiries, please send us your question and someone will contact you.