<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>dharry</author_name>
  <author_url>https://blog.hatena.ne.jp/dharry/</author_url>
  <blog_title>harry’s memorandum</blog_title>
  <blog_url>https://dharry.hatenablog.com/</blog_url>
  <categories>
    <anon>ruby</anon>
    <anon>ssh</anon>
    <anon>nagios</anon>
  </categories>
  <description>リモートサーバに接続して色々できるということなので、nagiosでリモートサーバのメモリ監視をする簡単なpluginを書いてみた。 ここでのsshの認証はパスワードが生になっているけど、運用で使うには公開鍵認証にしないとね。 #!/usr/bin/env ruby require 'net/ssh' # nagios exit code # exit status # 0 OK # 1 Warinig # 2 Critical # 3 Unknown def usage puts &quot;usage: #{__FILE__} host user password warning critical&quot; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdharry.hatenablog.com%2Fentry%2F20080908%2F1220897110&quot; title=&quot; rubyでssh(Net::SSH) - 2  - harry’s memorandum&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-09-08 03:05:10</published>
  <title> rubyでssh(Net::SSH) - 2 </title>
  <type>rich</type>
  <url>https://dharry.hatenablog.com/entry/20080908/1220897110</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
