checks: check gets class
This commit is contained in:
parent
08108167a9
commit
2f1c21ff79
|
@ -323,8 +323,9 @@ module NSCA
|
||||||
const_set cl, NSCA::PerformanceData.create( *params)
|
const_set cl, NSCA::PerformanceData.create( *params)
|
||||||
end
|
end
|
||||||
|
|
||||||
def check cl, *params
|
def check cl, service, hostname, perfdatas
|
||||||
const_set cl, NSCA::Check.create( *params)
|
perfdatas.map! {|cl| cl.is_a?( Symbol) ? const_get( cl) : cl }
|
||||||
|
const_set cl, NSCA::Check.create( service, hostname, perfdatas)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue