Debian Codegraph @

src/network/sonus/sbc/snmp/mode/storage.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::sonus::sbc::snmp::mode::storage;
22
23 use base qw(snmp_standard::mode::storage);
24
25 use strict;
26 use warnings;
27
28 sub new {
29 my ($class, %options) = @_;
30 my $self = $class->SUPER::new(package => __PACKAGE__, %options, force_new_perfdata => 1);
31 bless $self, $class;
32
33 return $self;
34 }
35
36 1;
37
38 __END__
39
40 =head1 MODE
41
42 =over 8
43
44 =item B<--warning-usage>
45
46 Warning threshold.
47
48 =item B<--critical-usage>
49
50 Critical threshold.
51
52 =item B<--warning-access>
53
54 Warning threshold.
55
56 =item B<--critical-access>
57
58 Critical threshold.
59 Check if storage is readOnly: --critical-access=readOnly
60
61 =item B<--add-access>
62
63 Check storage access (readOnly, readWrite).
64
65 =item B<--units>
66
67 Units of thresholds (default: '%') ('%', 'B').
68
69 =item B<--free>
70
71 Thresholds are on free space left.
72
73 =item B<--storage>
74
75 Set the storage (number expected) example: 1, 2,... (empty means 'check all storage').
76
77 =item B<--name>
78
79 Allows to use storage name with option --storage instead of storage oid index.
80
81 =item B<--regexp>
82
83 Allows to use regexp to filter storage (with option --name).
84
85 =item B<--regexp-insensitive>
86
87 Allows to use regexp non case-sensitive (with --regexp).
88
89 =item B<--path-best-match>
90
91 Allows to select best path mount point (with --name).
92
93 =item B<--reload-cache-time>
94
95 Time in minutes before reloading cache file (default: 180).
96
97 =item B<--oid-filter>
98
99 Choose OID used to filter storage (default: hrStorageDescr) (values: hrStorageDescr, hrFSMountPoint).
100
101 =item B<--oid-display>
102
103 Choose OID used to display storage (default: hrStorageDescr) (values: hrStorageDescr, hrFSMountPoint).
104
105 =item B<--display-transform-src> B<--display-transform-dst>
106
107 Modify the storage name displayed by using a regular expression.
108
109 Example: adding --display-transform-src='dev' --display-transform-dst='run' will replace all occurrences of 'dev' with 'run'
110
111 =item B<--show-cache>
112
113 Display cache storage data.
114
115 =item B<--space-reservation>
116
117 Some filesystem has space reserved (like ext4 for root).
118 The value is in percent of total (default: none) (results like 'df' command).
119
120 =item B<--filter-duplicate>
121
122 Filter duplicate storages (in used size and total size).
123
124 =item B<--filter-storage-type>
125
126 Filter storage types with a regexp (default: '^(hrStorageFixedDisk|hrStorageNetworkDisk|hrFSBerkeleyFFS)$').
127
128 =back
129
130 =cut