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.
#
package network::cisco::ironport::snmp::mode::components::fan;
package centreon::common::cisco::ironport::snmp::mode::components::fan;
use strict;
use warnings;

View File

@ -18,7 +18,7 @@
# limitations under the License.
#
package network::cisco::ironport::snmp::mode::components::psu;
package centreon::common::cisco::ironport::snmp::mode::components::psu;
use strict;
use warnings;
@ -71,4 +71,4 @@ sub check {
}
}
1;
1;

View File

@ -18,7 +18,7 @@
# limitations under the License.
#
package network::cisco::ironport::snmp::mode::components::raid;
package centreon::common::cisco::ironport::snmp::mode::components::raid;
use strict;
use warnings;
@ -66,4 +66,4 @@ sub check {
}
}
1;
1;

View File

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

View File

@ -18,7 +18,7 @@
# 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);
@ -59,9 +59,8 @@ sub new {
bless $self, $class;
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
});
$options{options}->add_options(arguments => {
});
return $self;
}

View File

@ -18,7 +18,7 @@
# 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);
@ -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'];
}
@ -64,9 +64,8 @@ sub new {
bless $self, $class;
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
});
$options{options}->add_options(arguments => {
});
return $self;
}
@ -119,4 +118,4 @@ Example: --critical='fan,.*,6000'
=back
=cut
=cut

View File

@ -18,7 +18,7 @@
# 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);
@ -55,9 +55,8 @@ sub new {
bless $self, $class;
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
});
$options{options}->add_options(arguments => {
});
return $self;
}

View File

@ -18,7 +18,7 @@
# 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);
@ -31,11 +31,10 @@ sub new {
bless $self, $class;
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
"warning:s" => { name => 'warning', },
"critical:s" => { name => 'critical', },
});
$options{options}->add_options(arguments => {
"warning:s" => { name => 'warning', },
"critical:s" => { name => 'critical', },
});
return $self;
}

View File

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