Debian Codegraph @

src/hardware/ups/alpha/snmp/plugin.pm

raw
1 #
2 # Centreon is a full-fledged industry-strength solution that meets
3 # the needs in IT infrastructure and application monitoring for
4 # service performance.
5 #
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 # http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #
18
19 package hardware::ups::alpha::snmp::plugin;
20
21 use strict;
22 use warnings;
23 use base qw(centreon::plugins::script_snmp);
24
25 sub new {
26 my ($class, %options) = @_;
27 my $self = $class->SUPER::new(package => __PACKAGE__, %options);
28 bless $self, $class;
29
30 $self->{version} = '0.1';
31 %{$self->{modes}} = (
32 'alarms' => 'hardware::ups::alpha::snmp::mode::alarms',
33 'battery-status' => 'hardware::ups::alpha::snmp::mode::batterystatus',
34 );
35
36 return $self;
37 }
38
39 1;
40
41 __END__
42
43 =head1 PLUGIN DESCRIPTION
44
45 Check UPS Alpha through SNMP.
46
47 =cut