Last active
August 29, 2015 14:11
-
-
Save mikepea/b148cd2129f64ae1acc4 to your computer and use it in GitHub Desktop.
Revisions
-
mikepea revised this gist
Dec 15, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,7 @@ ### 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}' ``` -
mikepea created this gist
Dec 15, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ # Monitoring Gearman ### Number of jobs in the queue ``` 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}' ```