-
-
01 Nov 2006 14:59:49 UTC
- Distribution: Sledge-Plugin-SNMP
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (7 / 0 / 0)
- Kwalitee
Bus factor: 0- License: unknown
- Activity
24 month- Tools
- Download (1.73KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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
Sledge::Plugin::SNMP provide the function which acquires a server resource by using SNMP. you can add new method or overwrite method by using the addfunc( method => MIS ).
METHODS
this plugin have the following method by the default.
ssCpuUser() ssCpuSystem() ssCpuIdle() laLoad1() laLoad2() laLoad3() memTotalSwap() memAvailSwap() memTotalReal() memAvailReal() memTotalFree() memShared() memBuffer() memCached() addfunc( method = MIS )
you must write config in Config/_common.pm, like this.
$C{SNMP} = { -hostname => 'localhost', -community => 'public', -port => 161 };
AUTHOR
TSUNODA Kazuya <drk@drk7.jp>
SEE ALSO
Module Install Instructions
To install Sledge::Plugin::SNMP, copy and paste the appropriate command in to your terminal.
cpanm Sledge::Plugin::SNMP
perl -MCPAN -e shell install Sledge::Plugin::SNMP
For more information on module installation, please visit the detailed CPAN module installation guide.