Add option to pmp-check-mysql-replication-running to support delayed slaves

Bug #1332082 reported by Roman Vynar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Monitoring Plugins
Fix Released
Medium
Unassigned

Bug Description

Add option to pmp-check-mysql-replication-running to support delayed slaves so those with pt-slave-delay still get alerted when replication is broken.

Currently with pt-slave-delay slave status looks like this:

Slave_IO_Running: Yes
Slave_SQL_Running: No
Last_Error:

if the Slave_SQL_Running is not running but there are no errors add an option so that does not trigger an alert.

But if Last_Error does have anything that should always be an alerts as it is currently:

NOTE=$(awk '$1 ~ /_Running:|Last_Error:/
{print substr($0, 1, 100)}

' "$
{TEMP}")
if grep 'Last_Error: .' "${TEMP}

" >/dev/null 2>&1; then
NOTE="CRIT $NOTE"

Tags: nagios
Changed in percona-monitoring-plugins:
importance: Undecided → Medium
summary: - Add option pmp-check-mysql-replication-running to support a delayed
- slave
+ Add option pmp-check-mysql-replication-running to support delayed slaves
summary: - Add option pmp-check-mysql-replication-running to support delayed slaves
+ Add option to pmp-check-mysql-replication-running to support delayed
+ slaves
description: updated
Changed in percona-monitoring-plugins:
status: New → Fix Committed
milestone: none → 1.1.4
tags: added: nagios
Changed in percona-monitoring-plugins:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.