| 1 |
package Classes::Kyocera; |
| 2 |
our @ISA = qw(Classes::Device); |
| 3 |
use strict; |
| 4 |
|
| 5 |
sub init { |
| 6 |
my $self = shift; |
| 7 |
$self->get_snmp_tables('KYOCERA-Private-MIB', [ |
| 8 |
['xxx', 'kcprtMemoryDeviceTable', 'Monitoring::GLPlugin::SNMP::TableItem'], |
| 9 |
#https://pastebin.com/ZvuFXPcU |
| 10 |
]); |
| 11 |
|
| 12 |
if ($self->mode =~ /device::hardware::health/) { |
| 13 |
$self->analyze_and_check_environmental_subsystem('Classes::HOSTRESOURCESMIB::Component::EnvironmentalSubsystem'); |
| 14 |
} elsif ($self->mode =~ /device::consumables/) { |
| 15 |
$self->analyze_and_check_environmental_subsystem('Classes::HOSTRESOURCESMIB::Component::EnvironmentalSubsystem'); |
| 16 |
$self->analyze_and_check_battery_subsystem('Classes::Kyocera::Components::BatterySubsystem'); |
| 17 |
} else { |
| 18 |
$self->no_such_mode(); |
| 19 |
} |
| 20 |
} |
| 21 |
|