Sha256: 277a866fb7956bef5012e77198d7594df4ae8e753fcc6537bbbfc836993b87ab
Contents?: true
Size: 358 Bytes
Versions: 2
Compression:
Stored size: 358 Bytes
Contents
class Nagios::<%= class_name %> < Nagios::CheckEM # You can define script parameters this way: params :x # and can use further just x def execute EM.next_tick do safe do warn "hmmm" if x == 'w' crit "ouch" if x == 'c' ok "good" send_result # should be!, for sending results end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nagios_helper-0.1.2 | lib/generators/nagios/templates/script_class_em.rb |
nagios_helper-0.1.1 | lib/generators/nagios/templates/script_class_em.rb |