Skip to content

Instantly share code, notes, and snippets.

@mikepea
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikepea/b148cd2129f64ae1acc4 to your computer and use it in GitHub Desktop.
Save mikepea/b148cd2129f64ae1acc4 to your computer and use it in GitHub Desktop.
Monitoring Gearman

Monitoring Gearman

Number of jobs in the queue

# Should be an integer if queue is present and gearman running.
gearadmin --status | grep "^${QUEUE_NAME}" | awk '{print $2}'

Gearman running or not

# Matches == running; no-match == not running
gearadmin --status | grep '^\.'

Number of workers processing the queue

# should be >= 1
gearadmin --status | grep "^${QUEUE_NAME}" | awk '{print $4}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment