pmp-check-mysql-replication-delay doesn't alert if second behing master is NULL

Bug #1040528 reported by Miguel Angel Nieto
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Percona Monitoring Plugins
Fix Released
High
Brian Fraser

Bug Description

In a master-slave server, when the slave is stopped (STOP SLAVE) the check script doesn't work.

# ./pmp-check-mysql-replication-delay -H 127.0.0.1 -l root -P 21581
[: 129: Illegal number: NULL
[: 129: Illegal number: NULL
OK NULL seconds of replication delay

- It tries to compare a string with an integer
- It shows OK when the lag is NULL

Related branches

Brian Fraser (fraserbn)
Changed in percona-monitoring-plugins:
assignee: nobody → Brian Fraser (fraserbn)
status: New → In Progress
importance: Undecided → High
Changed in percona-monitoring-plugins:
status: In Progress → Fix Committed
Changed in percona-monitoring-plugins:
milestone: none → 1.0.2
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.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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