From 2964f31a4d8035ffe7ee5d33ef92c567059ffcf8 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Mon, 4 Oct 2021 14:52:37 +0200 Subject: [PATCH] clean(cisco/esa/restapi): system mode - remove useless code (#3173) --- .../network/cisco/esa/restapi/mode/system.pm | 52 ------------------- 1 file changed, 52 deletions(-) diff --git a/centreon-plugins/network/cisco/esa/restapi/mode/system.pm b/centreon-plugins/network/cisco/esa/restapi/mode/system.pm index 58322c1e0..8cc24c6c5 100644 --- a/centreon-plugins/network/cisco/esa/restapi/mode/system.pm +++ b/centreon-plugins/network/cisco/esa/restapi/mode/system.pm @@ -25,58 +25,6 @@ use base qw(centreon::plugins::templates::counter); use strict; use warnings; -sub custom_cpu_temp_perfdata { - my ($self, %options) = @_; - - $self->{output}->perfdata_add( - nlabel => $self->{nlabel}, - unit => 'C', - instances => 'cpu', - value => $self->{result_values}->{cpu}, - warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{thlabel}), - critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{thlabel}) - ); -} - -sub custom_pcie_temp_perfdata { - my ($self, %options) = @_; - - $self->{output}->perfdata_add( - nlabel => $self->{nlabel}, - unit => 'C', - instances => 'pcie', - value => $self->{result_values}->{pcie}, - warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{thlabel}), - critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{thlabel}) - ); -} - -sub custom_sio_temp_perfdata { - my ($self, %options) = @_; - - $self->{output}->perfdata_add( - nlabel => $self->{nlabel}, - unit => 'C', - instances => 'sio', - value => $self->{result_values}->{sio}, - warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{thlabel}), - critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{thlabel}) - ); -} - -sub custom_cpu_fan_perfdata { - my ($self, %options) = @_; - - $self->{output}->perfdata_add( - nlabel => $self->{nlabel}, - unit => 'rpm', - instances => 'cpu', - value => $self->{result_values}->{cpu}, - warning => $self->{perfdata}->get_perfdata_for_output(label => 'warning-' . $self->{thlabel}), - critical => $self->{perfdata}->get_perfdata_for_output(label => 'critical-' . $self->{thlabel}) - ); -} - sub system_long_output { my ($self, %options) = @_;