moved cisco ironport

This commit is contained in:
garnier-quentin 2019-04-23 09:12:08 +02:00
parent 519ccda0df
commit 82d6a0e758
9 changed files with 29 additions and 33 deletions

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::cisco::ironport::snmp::mode::components::fan; package centreon::common::cisco::ironport::snmp::mode::components::fan;
use strict; use strict;
use warnings; use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::cisco::ironport::snmp::mode::components::psu; package centreon::common::cisco::ironport::snmp::mode::components::psu;
use strict; use strict;
use warnings; use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::cisco::ironport::snmp::mode::components::raid; package centreon::common::cisco::ironport::snmp::mode::components::raid;
use strict; use strict;
use warnings; use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::cisco::ironport::snmp::mode::components::temperature; package centreon::common::cisco::ironport::snmp::mode::components::temperature;
use strict; use strict;
use warnings; use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::cisco::ironport::snmp::mode::cpu; package centreon::common::cisco::ironport::snmp::mode::cpu;
use base qw(centreon::plugins::templates::counter); use base qw(centreon::plugins::templates::counter);
@ -59,9 +59,8 @@ sub new {
bless $self, $class; bless $self, $class;
$self->{version} = '1.0'; $self->{version} = '1.0';
$options{options}->add_options(arguments => $options{options}->add_options(arguments => {
{ });
});
return $self; return $self;
} }

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::cisco::ironport::snmp::mode::hardware; package centreon::common::cisco::ironport::snmp::mode::hardware;
use base qw(centreon::plugins::templates::hardware); use base qw(centreon::plugins::templates::hardware);
@ -47,7 +47,7 @@ sub set_system {
], ],
}; };
$self->{components_path} = 'network::cisco::ironport::snmp::mode::components'; $self->{components_path} = 'centreon::common::cisco::ironport::snmp::mode::components';
$self->{components_module} = ['fan', 'temperature', 'psu', 'raid']; $self->{components_module} = ['fan', 'temperature', 'psu', 'raid'];
} }
@ -64,9 +64,8 @@ sub new {
bless $self, $class; bless $self, $class;
$self->{version} = '1.0'; $self->{version} = '1.0';
$options{options}->add_options(arguments => $options{options}->add_options(arguments => {
{ });
});
return $self; return $self;
} }

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::cisco::ironport::snmp::mode::keysexpire; package centreon::common::cisco::ironport::snmp::mode::keysexpire;
use base qw(centreon::plugins::templates::counter); use base qw(centreon::plugins::templates::counter);
@ -55,9 +55,8 @@ sub new {
bless $self, $class; bless $self, $class;
$self->{version} = '1.0'; $self->{version} = '1.0';
$options{options}->add_options(arguments => $options{options}->add_options(arguments => {
{ });
});
return $self; return $self;
} }

View File

@ -18,7 +18,7 @@
# limitations under the License. # limitations under the License.
# #
package network::cisco::ironport::snmp::mode::memory; package centreon::common::cisco::ironport::snmp::mode::memory;
use base qw(centreon::plugins::mode); use base qw(centreon::plugins::mode);
@ -31,11 +31,10 @@ sub new {
bless $self, $class; bless $self, $class;
$self->{version} = '1.0'; $self->{version} = '1.0';
$options{options}->add_options(arguments => $options{options}->add_options(arguments => {
{ "warning:s" => { name => 'warning', },
"warning:s" => { name => 'warning', }, "critical:s" => { name => 'critical', },
"critical:s" => { name => 'critical', }, });
});
return $self; return $self;
} }

View File

@ -31,13 +31,13 @@ sub new {
$self->{version} = '1.0'; $self->{version} = '1.0';
%{$self->{modes}} = ( %{$self->{modes}} = (
'cpu' => 'network::cisco::ironport::snmp::mode::cpu', 'cpu' => 'centreon::common::cisco::ironport::snmp::mode::cpu',
'hardware' => 'network::cisco::ironport::snmp::mode::hardware', 'hardware' => 'centreon::common::cisco::ironport::snmp::mode::hardware',
'keys-expire' => 'network::cisco::ironport::snmp::mode::keysexpire', 'keys-expire' => 'centreon::common::cisco::ironport::snmp::mode::keysexpire',
'interfaces' => 'snmp_standard::mode::interfaces', 'interfaces' => 'snmp_standard::mode::interfaces',
'list-interfaces' => 'snmp_standard::mode::listinterfaces', 'list-interfaces' => 'snmp_standard::mode::listinterfaces',
'memory' => 'network::cisco::ironport::snmp::mode::memory', 'memory' => 'centreon::common::cisco::ironport::snmp::mode::memory',
); );
return $self; return $self;
} }