{"blog_url":"https://dharry.hatenablog.com/","author_name":"dharry","description":"\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u306b\u63a5\u7d9a\u3057\u3066\u8272\u3005\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u306a\u306e\u3067\u3001nagios\u3067\u30ea\u30e2\u30fc\u30c8\u30b5\u30fc\u30d0\u306e\u30e1\u30e2\u30ea\u76e3\u8996\u3092\u3059\u308b\u7c21\u5358\u306aplugin\u3092\u66f8\u3044\u3066\u307f\u305f\u3002 \u3053\u3053\u3067\u306essh\u306e\u8a8d\u8a3c\u306f\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u751f\u306b\u306a\u3063\u3066\u3044\u308b\u3051\u3069\u3001\u904b\u7528\u3067\u4f7f\u3046\u306b\u306f\u516c\u958b\u9375\u8a8d\u8a3c\u306b\u3057\u306a\u3044\u3068\u306d\u3002 #!/usr/bin/env ruby require 'net/ssh' # nagios exit code # exit status # 0 OK # 1 Warinig # 2 Critical # 3 Unknown def usage puts \"usage: #{__FILE__} host user password warning critical\" \u2026","published":"2008-09-08 03:05:10","blog_title":"harry\u2019s memorandum","title":" ruby\u3067ssh(Net::SSH) - 2 ","type":"rich","author_url":"https://blog.hatena.ne.jp/dharry/","provider_url":"https://hatena.blog","url":"https://dharry.hatenablog.com/entry/20080908/1220897110","categories":["ruby","ssh","nagios"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdharry.hatenablog.com%2Fentry%2F20080908%2F1220897110\" title=\" ruby\u3067ssh(Net::SSH) - 2  - harry\u2019s memorandum\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","height":"190","provider_name":"Hatena Blog","version":"1.0","image_url":null}