Nagios Service class.
This commit is contained in:
parent
125025e078
commit
86f8428c41
2 changed files with 28 additions and 0 deletions
12
lib/nsca/client/service.rb
Normal file
12
lib/nsca/client/service.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
module NSCA
|
||||
module Client
|
||||
class Service
|
||||
attr_accessor :name, :host
|
||||
|
||||
def initialize(options)
|
||||
@name = options[:name]
|
||||
@host = options[:host] || Host.current
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue