Sha256: 807330541951c2dc21c313086f4d5169d5ca0781d19e071a5bc5fc39c0cb8813

Contents?: true

Size: 202 Bytes

Versions: 5

Compression:

Stored size: 202 Bytes

Contents

class Nagios::<%= class_name %> < Nagios::Check
  # You can define script parameters this way:
  params :x

  def execute
    warn "hmmm" if x == 'w'
    crit "ouch" if x == 'c'
    ok "good"
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
nagios_helper-0.2.2 lib/generators/nagios/templates/script_class.rb
nagios_helper-0.2.1 lib/generators/nagios/templates/script_class.rb
nagios_helper-0.2 lib/generators/nagios/templates/script_class.rb
nagios_helper-0.1.2 lib/generators/nagios/templates/script_class.rb
nagios_helper-0.1.1 lib/generators/nagios/templates/script_class.rb