Sha256: cb9cd7e9aecc3592401cda06ff8cc71c604583378e70469d0d2c063d4aad712b

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 Bytes

Contents

require 'spec_helper'

class Nagios::Bla < Nagios::Check
  params :s
  
  def execute
    crit 'a1' if s == 'crit' || s == 'crit_warn'
    warn 'a2' if s == 'warn' || s == 'crit_warn'
    raise 'a3' if s == 'raise'
    other 'a4' if s == 'other'
    ok 'a5'
  end
  
end

class Nagios::BlaEm < Nagios::CheckEM

  params :s

  def execute
    crit 'b1' if s == 'crit' || s == 'crit_warn'
    warn 'b2' if s == 'warn' || s == 'crit_warn'
    raise 'b3' if s == 'raise'
    other 'b4' if s == 'other'
    ok 'b5'

    send_result
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nagios_helper-0.1.2 spec/nagios_support.rb
nagios_helper-0.1.1 spec/nagios_support.rb