Add new modes which are compatible with standard MIB

This commit is contained in:
Kevin Duret 2014-05-16 15:05:51 +02:00
parent 1fd95956c7
commit 4432699048
1 changed files with 17 additions and 11 deletions

View File

@ -47,17 +47,23 @@ sub new {
$self->{version} = '0.1';
%{$self->{modes}} = (
'cpu' => 'snmp_standard::mode::cpu',
'load' => 'snmp_standard::mode::loadaverage',
'list-interfaces' => 'snmp_standard::mode::listinterfaces',
'list-storages' => 'snmp_standard::mode::liststorages',
'memory' => 'snmp_standard::mode::memory',
'packet-errors' => 'snmp_standard::mode::packeterrors',
'processcount' => 'snmp_standard::mode::processcount',
'storage' => 'snmp_standard::mode::storage',
'swap' => 'snmp_standard::mode::swap',
'traffic' => 'snmp_standard::mode::traffic',
'uptime' => 'snmp_standard::mode::uptime',
'cpu' => 'snmp_standard::mode::cpu',
'cpu-detailed' => 'snmp_standard::mode::cpudetailed',
'diskio' => 'snmp_standard::mode::diskio',
'disk-usage' => 'snmp_standard::mode::diskusage',
'inodes' => 'snmp_standard::mode::inodes',
'load' => 'snmp_standard::mode::loadaverage',
'list-diskspath' => 'snmp_standard::mode::listdiskspath',
'list-interfaces' => 'snmp_standard::mode::listinterfaces',
'list-storages' => 'snmp_standard::mode::liststorages',
'memory' => 'snmp_standard::mode::memory',
'packet-errors' => 'snmp_standard::mode::packeterrors',
'processcount' => 'snmp_standard::mode::processcount',
'storage' => 'snmp_standard::mode::storage',
'swap' => 'snmp_standard::mode::swap',
'tcpcon' => 'snmp_standard::mode::tcpcon',
'traffic' => 'snmp_standard::mode::traffic',
'uptime' => 'snmp_standard::mode::uptime',
);
return $self;