0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A paranoid nagios plugin for checking resque jobs actually being queued, processed in given time. It queues simple job, then later checks if the job is processed and updated timestamp in redis.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Nagios plugin for Resque

It checks resque by putting given job in high queue and expects the job will update key with timestamp.

Install

In Gemfile: gem "check_resque_paranoid", :require => 'nagios_resque'

Or withoud Bundler:

$ gem install check_resque_paranoid
$ check_resque -n 'resque:production' -j 'NagiosResque::Job'

Default Job

Job need update NagiosResque::NAGIOS_RESQUE_TIMESTAMP_KEY key with timestamp.

module NagiosResque
  class Job
    def self.perform
      Resque.redis.set(NAGIOS_RESQUE_TIMESTAMP_KEY, Time.now.to_i)
    end
  end
end

Options

Usage: check_resque [options]
    -H, --host hosname               redis server
    -p, --port number                redis server port
    -n, --namespace name             redis namespace
    -j, --job name                   resque job name
    -k, --key name                   redis key for timestamp

Default options:

    -h, --help                       Display this help.
    -V, --version                    Print version.
    -w, --warn <n:m>                 Warning threshold.
    -c, --crit <n:m>                 Critical threshold.