update help

This commit is contained in:
garnier-quentin 2020-01-13 17:32:48 +01:00
parent 70a98a4da3
commit e688fcf711
2 changed files with 2 additions and 15 deletions

View File

@ -193,19 +193,6 @@ sub authenticate {
sub request_api { sub request_api {
my ($self, %options) = @_; 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(); $self->settings();
if (!defined($self->{session_cookie})) { if (!defined($self->{session_cookie})) {
$self->authenticate(statefile => $self->{cache}); $self->authenticate(statefile => $self->{cache});

View File

@ -43,7 +43,7 @@ sub set_counters {
]; ];
$self->{maps_counters}->{certificates} = [ $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' } ], key_values => [ { name => 'validity_time' }, { name => 'generation_time' } ],
closure_custom_output => $self->can('custom_validity_output'), closure_custom_output => $self->can('custom_validity_output'),
perfdatas => [ perfdatas => [
@ -126,7 +126,7 @@ Check certificates validity.
=item B<--warning-*> B<--critical-*> =item B<--warning-*> B<--critical-*>
Thresholds. Thresholds.
Can be: 'peripherals-connected'. Can be: 'certificate-expire'.
=back =back