rename netasq to stormshield
This commit is contained in:
parent
8c6544bd41
commit
08d6e63982
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package network::netasq::local::mode::qosusage;
|
||||
package network::stormshield::local::mode::qosusage;
|
||||
|
||||
use base qw(centreon::plugins::templates::counter);
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package network::netasq::local::plugin;
|
||||
package network::stormshield::local::plugin;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
@ -31,7 +31,7 @@ sub new {
|
|||
|
||||
$self->{version} = '0.1';
|
||||
%{$self->{modes}} = (
|
||||
'qos-usage' => 'network::netasq::local::mode::qosusage',
|
||||
'qos-usage' => 'network::stormshield::local::mode::qosusage',
|
||||
);
|
||||
|
||||
return $self;
|
||||
|
@ -43,6 +43,6 @@ __END__
|
|||
|
||||
=head1 PLUGIN DESCRIPTION
|
||||
|
||||
Check Netasq equipment.
|
||||
Check Stormshield equipment (also Netasq).
|
||||
|
||||
=cut
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package network::netasq::snmp::mode::connections;
|
||||
package network::stormshield::snmp::mode::connections;
|
||||
|
||||
use base qw(centreon::plugins::templates::counter);
|
||||
|
||||
|
@ -70,7 +70,7 @@ sub new {
|
|||
|
||||
sub manage_selection {
|
||||
my ($self, %options) = @_;
|
||||
$self->{cache_name} = "fw_netasq_" . $options{snmp}->get_hostname() . '_' . $options{snmp}->get_port() . '_' . $self->{mode} . '_' . md5_hex('all');
|
||||
$self->{cache_name} = "fw_stormshield_" . $options{snmp}->get_hostname() . '_' . $options{snmp}->get_port() . '_' . $self->{mode} . '_' . md5_hex('all');
|
||||
|
||||
my $oid_ntqASQStatsStatefulUdpConn = '.1.3.6.1.4.1.11256.1.12.1.33.0';
|
||||
my $oid_ntqASQStatsStatefulTcpConn = '.1.3.6.1.4.1.11256.1.12.1.23.0';
|
||||
|
@ -89,7 +89,7 @@ __END__
|
|||
|
||||
=head1 MODE
|
||||
|
||||
Check connections setup rate on Netasq Firewall equipments.
|
||||
Check connections setup rate on Stormshield Firewall equipments.
|
||||
|
||||
=over 8
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package network::netasq::snmp::mode::hanodes;
|
||||
package network::stormshield::snmp::mode::hanodes;
|
||||
|
||||
use base qw(centreon::plugins::templates::counter);
|
||||
|
||||
|
@ -227,7 +227,7 @@ __END__
|
|||
|
||||
=head1 MODE
|
||||
|
||||
Check Netasq dead nodes and state and health of nodes
|
||||
Check Stormshield dead nodes and state and health of nodes
|
||||
|
||||
=over 8
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package network::netasq::snmp::mode::vpnstatus;
|
||||
package network::stormshield::snmp::mode::vpnstatus;
|
||||
|
||||
use base qw(centreon::plugins::mode);
|
||||
|
||||
|
@ -163,7 +163,7 @@ sub run {
|
|||
$matching .= defined($self->{option_results}->{$_}) ? $self->{option_results}->{$_} : 'all';
|
||||
}
|
||||
$self->{new_datas} = {};
|
||||
$self->{statefile_value}->read(statefile => "netasq_" . $self->{hostname} . '_' . $self->{snmp_port} . '_' . $self->{mode} . '_' . md5_hex($matching));
|
||||
$self->{statefile_value}->read(statefile => "stormshield_" . $self->{hostname} . '_' . $self->{snmp_port} . '_' . $self->{mode} . '_' . md5_hex($matching));
|
||||
$self->{new_datas}->{last_timestamp} = time();
|
||||
|
||||
foreach my $id (sort keys %{$self->{vpn}}) {
|
|
@ -18,7 +18,7 @@
|
|||
# limitations under the License.
|
||||
#
|
||||
|
||||
package network::netasq::snmp::plugin;
|
||||
package network::stormshield::snmp::plugin;
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
@ -33,15 +33,15 @@ sub new {
|
|||
%{$self->{modes}} = (
|
||||
'cpu' => 'snmp_standard::mode::cpu',
|
||||
'cpu-detailed' => 'snmp_standard::mode::cpudetailed',
|
||||
'connections' => 'network::netasq::snmp::mode::connections',
|
||||
'connections' => 'network::stormshield::snmp::mode::connections',
|
||||
'interfaces' => 'snmp_standard::mode::interfaces',
|
||||
'list-interfaces' => 'snmp_standard::mode::listinterfaces',
|
||||
'load' => 'snmp_standard::mode::loadaverage',
|
||||
'ha-nodes' => 'network::netasq::snmp::mode::hanodes',
|
||||
'ha-nodes' => 'network::stormshield::snmp::mode::hanodes',
|
||||
'memory' => 'os::freebsd::snmp::mode::memory',
|
||||
'storage' => 'snmp_standard::mode::storage',
|
||||
'swap' => 'snmp_standard::mode::swap',
|
||||
'vpn-status' => 'network::netasq::snmp::mode::vpnstatus',
|
||||
'vpn-status' => 'network::stormshield::snmp::mode::vpnstatus',
|
||||
);
|
||||
|
||||
return $self;
|
||||
|
@ -53,6 +53,6 @@ __END__
|
|||
|
||||
=head1 PLUGIN DESCRIPTION
|
||||
|
||||
Check Netasq equipment in SNMP.
|
||||
Check Stormshield equipment (also Netasq) in SNMP.
|
||||
|
||||
=cut
|
Loading…
Reference in New Issue