diff --git a/network/cisco/cces/restapi/custom/api.pm b/network/cisco/cces/restapi/custom/api.pm index d115a12ad..0e6dd9de2 100644 --- a/network/cisco/cces/restapi/custom/api.pm +++ b/network/cisco/cces/restapi/custom/api.pm @@ -193,19 +193,6 @@ sub authenticate { sub request_api { my ($self, %options) = @_; - my $plop = do { - local $/ = undef; - if (!open my $fh, "<", '/tmp/plop4.txt') { - $self->{output}->add_option_msg(short_msg => "Could not open file"); - $self->{output}->option_exit(); - } - <$fh>; - }; - eval { - $plop = XMLin($plop, ForceArray => $options{ForceArray}, KeyAttr => []); - }; - return $plop; - $self->settings(); if (!defined($self->{session_cookie})) { $self->authenticate(statefile => $self->{cache}); diff --git a/network/cisco/cces/restapi/mode/certificates.pm b/network/cisco/cces/restapi/mode/certificates.pm index 0d2c3db40..b2e6e6bbe 100644 --- a/network/cisco/cces/restapi/mode/certificates.pm +++ b/network/cisco/cces/restapi/mode/certificates.pm @@ -43,7 +43,7 @@ sub set_counters { ]; $self->{maps_counters}->{certificates} = [ - { label => 'certificate-expires', nlabel => 'system.certificate.expires.seconds', set => { + { label => 'certificate-expire', nlabel => 'system.certificate.expire.seconds', set => { key_values => [ { name => 'validity_time' }, { name => 'generation_time' } ], closure_custom_output => $self->can('custom_validity_output'), perfdatas => [ @@ -126,7 +126,7 @@ Check certificates validity. =item B<--warning-*> B<--critical-*> Thresholds. -Can be: 'peripherals-connected'. +Can be: 'certificate-expire'. =back