I would like to monitor mod_gearman - specifically the Waiting jobs queue.
Searching for check_gearman on the Nagios server I find two different versions
Code: Select all
# /usr/bin/check_gearman -V
check_gearman: version 3.0.7 running on libgearman 0.33
# /usr/local/nagios/libexec/check_gearman -V
check_gearman 0.2.1
Code: Select all
-f, --flist=STRING
Check for the functions listed in STRING, separated by comma. If optional threshold is given (separated by :), check that waiting jobs for this particular function are not exceeding that valueCode: Select all
# /usr/local/nagios/libexec/check_gearman -f hostgroup_SITE-DC1:1
CHECK_GEARMAN WARNING - 20 jobs for hostgroup_SITE-DC1 exceeds threshold 1
2019-08-29 19:09:44 - localhost:4730 - v0.33
Queue Name | Worker Available | Jobs Waiting | Jobs Running
-----------------------------------------------------------------------------
check_results | 1 | 1 | 0
eventhandler | 45 | 0 | 0
host | 45 | 0 | 0
hostgroup_SITE-XX1 | 31 | 0 | 0
hostgroup_SITE-XX2 | 31 | 0 | 0
hostgroup_SITE-DC1 | 70 | 0 | 43
Also it would be good if I could define a Critical threshold as Jobs Waiting is a better indication of there being a problem.
Regards... Fred