Debian Codegraph @

src/hardware/ups/nitram/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::nitram::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 'battery-status' => 'centreon::common::cps::ups::snmp::mode::batterystatus',
33 'input-lines' => 'centreon::common::cps::ups::snmp::mode::inputlines',
34 'output-lines' => 'centreon::common::cps::ups::snmp::mode::outputlines',
35 );
36
37 return $self;
38 }
39
40 1;
41
42 __END__
43
44 =head1 PLUGIN DESCRIPTION
45
46 Check UPS Nitram in SNMP.
47
48 =cut