update help
This commit is contained in:
parent
70a98a4da3
commit
e688fcf711
|
@ -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});
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue