Uploaded image for project: 'Percona Toolkit'
  1. Percona Toolkit
  2. PT-1080

LP #1133251: Add an exit code status check with a delay threshold

Details

    • Bug
    • Status: Done
    • Low
    • Resolution: Invalid
    • None
    • None
    • None

    Description

      **Reported in Launchpad by Callum Macdonald last update 01-03-2013 23:23:26

      pt-heartbeat is a great tool. We use it alongside monit to generate alerts if any of our slaves fall behind. However, that requires an intermediary script. It would be great if pt-heartbeat had an option whereby it would check that the replication delay is within a certain threshold and if so, exit 0, if not, exit 1. That would allow other scripts (such as monit) to call pt-heartbeat at regular intervals and verify the replication delay.

      I imagine a single argument could be added along the lines of:
      --check-threshold 60

      Where 60 is the number of seconds considered acceptable. Anything over that would result in a non zero exit code.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lpjirasync lpjirasync (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist