NAME

Sledge::Plugin::SNMP - Object oriented interface to SNMP

SYNOPSIS

  package Foo::Pages::Bar;
  use Sledge::Plugin::SNMP;

  sub dispatch_baz {
      my $self = shift;
      $self->snmp->laLoad1;
      $self->snmp->addfunc( disk => '.1.3.6.1.4.1.2021.9.1.9.1' );
      $self->snmp->disk;
  }

DESCRIPTION

SNMP¥×¥é¥°¥¤¥ó¤Ï¡¢SNMP¤Ç¥¿¡¼¥²¥Ã¥È¤È¤¹¤ë¥µ¡¼¥Ð¥ê¥½¡¼¥¹¤ò¼èÆÀ¤¹¤ëµ¡Ç½¤ò Ä󶡤·¤Þ¤¹¡£addfunc¤Ç¼èÆÀ¤·¤¿¤¤MIB(Management Information Base)¤Èmethod ¤òÅÐÏ¿¡¢¾å½ñ¤­¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

METHODS

use Sledge::Plugin::SNMP ¤òÀë¸À¤¹¤ë¤³¤È¤Ç¡¢¤½¤Î¥¯¥é¥¹¤Ç snmp ¥á¥½¥Ã¥É¤¬ÍøÍѲÄǽ¤Ë¤Ê¤ê¤Þ¤¹¡£snmp ¥á¥½¥Ã¥É¤Ï Sledge::Plugin::SNMP ¥¯¥é¥¹¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤Ø¤Î read only accessor ¤Ç¡¢É¸½à¤Ç°Ê²¼¤Î¥á¥½¥Ã¥É¤ò¼ÂÁõ¤·¤Æ¤¤¤Þ¤¹¡£

 C<ssCpuUser()>
 C<ssCpuSystem()>
 C<ssCpuIdle()>
 C<laLoad1()>
 C<laLoad2()>
 C<laLoad3()>
 C<memTotalSwap()>
 C<memAvailSwap()>
 C<memTotalReal()>
 C<memAvailReal()>
 C<memTotalFree()>
 C<memShared()>
 C<memBuffer()>
 C<memCached()>
 C<addfunc( method => MIS )>

¤Þ¤¿¡¢Config/_common.pm ¤Ç Net::SNMP ¥¯¥é¥¹¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤òÀ¸À®¤¹¤ë¤¿¤á ¤Î°ú¿ô¤ò°Ê²¼¤Î¤è¤¦¤ËÄêµÁ¤·¤Æ¤ª¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡£°ú¿ô¤Î¾ÜºÙ¤Ï Net::SNMP ¤ò»²¾È²¼¤µ¤¤¡£

$C{SNMP} = { -hostname =&gt; 'localhost', -community =&gt; 'public', -port =&gt; 161 };

AUTHOR

TSUNODA Kazuya <drk@drk7.jp>

SEE ALSO

pnotes in Net::SNMP

1 POD Error

The following errors were encountered while parsing the POD:

Around line 102:

Non-ASCII character seen before =encoding in 'SNMP¥×¥é¥°¥¤¥ó¤Ï¡¢SNMP¤Ç¥¿¡¼¥²¥Ã¥È¤È¤¹¤ë¥µ¡¼¥Ð¥ê¥½¡¼¥¹¤ò¼èÆÀ¤¹¤ëµ¡Ç½¤ò'. Assuming ISO8859-1