Debian Codegraph @

src/network/paloalto/snmp/mode/memory.pm

raw
1 #
2 # Copyright 2024 Centreon (http://www.centreon.com/)
3 #
4 # Centreon is a full-fledged industry-strength solution that meets
5 # the needs in IT infrastructure and application monitoring for
6 # service performance.
7 #
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11 #
12 # http://www.apache.org/licenses/LICENSE-2.0
13 #
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 #
20
21 package network::paloalto::snmp::mode::memory;
22
23 use base qw(snmp_standard::mode::storage);
24
25 use strict;
26 use warnings;
27
28 sub default_storage_type {
29 my ($self, %options) = @_;
30
31 return '^(hrStorageRam|hrStorageFlashMemory)';
32 }
33
34 sub new {
35 my ($class, %options) = @_;
36 my $self = $class->SUPER::new(package => __PACKAGE__, %options);
37 bless $self, $class;
38
39 return $self;
40 }
41
42 1;
43
44 __END__
45
46 =head1 MODE
47
48 Check memory.
49
50 =over 8
51
52 =item B<--warning-usage>
53
54 Warning threshold.
55
56 =item B<--critical-usage>
57
58 Critical threshold.
59
60 =item B<--units>
61
62 Units of thresholds (default: '%') ('%', 'B').
63
64 =item B<--free>
65
66 Thresholds are on free space left.
67
68 =item B<--storage>
69
70 Set the storage (number expected) example: 1, 2,... (empty means 'check all storage').
71
72 =item B<--name>
73
74 Allows to use storage name with option --storage instead of storage oid index.
75
76 =item B<--regexp>
77
78 Allows to use regexp to filter storage (with option --name).
79
80 =item B<--regexp-insensitive>
81
82 Allows to use regexp non case-sensitive (with --regexp).
83
84 =item B<--reload-cache-time>
85
86 Time in minutes before reloading cache file (default: 180).
87
88 =item B<--show-cache>
89
90 Display cache storage data.
91
92 =item B<--filter-storage-type>
93
94 Filter storage types with a regexp (default: '^(hrStorageRam|hrStorageFlashMemory)$').
95
96 =back
97
98 =cut