checks: check gets class

This commit is contained in:
Denis Knauf 2013-03-16 16:31:50 +01:00
parent 08108167a9
commit 2f1c21ff79

View file

@ -323,8 +323,9 @@ module NSCA
const_set cl, NSCA::PerformanceData.create( *params)
end
def check cl, *params
const_set cl, NSCA::Check.create( *params)
def check cl, service, hostname, perfdatas
perfdatas.map! {|cl| cl.is_a?( Symbol) ? const_get( cl) : cl }
const_set cl, NSCA::Check.create( service, hostname, perfdatas)
end
end
end