wip: cisco ssms rest api

This commit is contained in:
garnier-quentin 2020-07-07 11:32:11 +02:00
parent bb3c11f0b7
commit 0f7ea40f28

View File

@ -23,6 +23,7 @@ package network::cisco::ssms::restapi::custom::api;
use strict;
use warnings;
use centreon::plugins::http;
use centreon::plugins::statefile;
use JSON::XS;
use Digest::MD5 qw(md5_hex);
@ -57,6 +58,7 @@ sub new {
$self->{output} = $options{output};
$self->{http} = centreon::plugins::http->new(%options);
$self->{cache} = centreon::plugins::statefile->new(%options);
return $self;
}
@ -95,6 +97,8 @@ sub check_options {
$self->{output}->option_exit();
}
$self->{cache}->check_options(option_results => $self->{option_results});
return 0;
}