【文件属性】:
文件名称:ruby-nagios-plugin:一个可以轻松创建 Nagios 插件的 Ruby Gem
文件大小:7KB
文件格式:ZIP
更新时间:2021-07-14 16:05:40
Ruby
Nagios的-插件
说明:
这使您可以轻松地在 Ruby 中编写 Nagios 插件。
实施例
#!/usr/bin/env ruby
require 'rubygems'
require 'nagios-plugin'
require 'time'
class MyNagiosCheck < Nagios :: Plugin
# What should run when check is run
def run
# Get more options via arguments using the OptParse object.
# -w and -c for warning and critical thresholds are already included
@opts . on ( '-H' , '--host HOST' , 'Pro
【文件预览】:
ruby-nagios-plugin-master
----History.txt(65B)
----nagios-plugin.gemspec(390B)
----script()
--------console(448B)
--------generate(389B)
--------destroy(387B)
----lib()
--------nagios-plugin.rb(4KB)
----README.rdoc(3KB)
----Manifest.txt(176B)
----Rakefile(826B)
----test()
--------test_helper.rb(96B)
--------test_nagios-plugin.rb(759B)
----PostInstall.txt(30B)