sni / mod_gearman

Distribute Naemon Host/Service Checks & Eventhandler with Gearman Queues. Host/Servicegroups affinity included.
http://www.mod-gearman.org
GNU General Public License v3.0
122 stars 42 forks source link

added worker_status perl script to monitor workers stats and send them t... #77

Closed erikmathis closed 9 years ago

erikmathis commented 9 years ago

...o nagios as pref data

I've been running this in prod for several months and has helped me keep watch over the workers. The same data is sent to syslog as json to get a real time feel of updates when SIGHUP is sent to the deamon.

screenshot from 2015-04-16 22 11 43 screenshot from 2015-04-16 22 11 24 screenshot from 2015-04-16 22 11 08 screenshot from 2015-04-16 22 10 52 screenshot from 2015-04-16 22 10 23 screenshot from 2015-04-16 22 10 02 screenshot from 2015-04-16 22 09 35 screenshot from 2015-04-16 22 09 15

sni commented 9 years ago

thanks for your pull request, i really like statistics. After a quick look, i would say all of these values can be retrieved by "check_gearman" or "gearman_top" already. Did you try that?

erikmathis commented 9 years ago

I do use both actually. What I liked about this approach was that I get allot more stats direct from the actual worker itself. I felt that its a bit more accurate in that everything is accounted for as nothing is lost in between the time it takes to fetch all that data. For instance when I run gearman_top the 'Worker Available' changes but the other two rarely changed for me.

-Erik-

On 04/17/2015 04:36 AM, Sven Nierlein wrote:

thanks for your pull request, i really like statistics. After a quick look, i would say all of these values can be retrieved by "check_gearman" or "gearman_top" already. Did you try that?

— Reply to this email directly or view it on GitHub https://github.com/sni/mod_gearman/pull/77#issuecomment-93943878.