mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
Add debug for vmware
This commit is contained in:
parent
a5455c401b
commit
e4ded14b2c
@ -46,8 +46,7 @@ sub new {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!defined($options{noptions})) {
|
if (!defined($options{noptions})) {
|
||||||
$options{options}->add_options(arguments =>
|
$options{options}->add_options(arguments => {
|
||||||
{
|
|
||||||
"connector-hostname:s@" => { name => 'connector_hostname' },
|
"connector-hostname:s@" => { name => 'connector_hostname' },
|
||||||
"connector-port:s@" => { name => 'connector_port' },
|
"connector-port:s@" => { name => 'connector_port' },
|
||||||
"vsphere-address:s@" => { name => 'vsphere_address' },
|
"vsphere-address:s@" => { name => 'vsphere_address' },
|
||||||
@ -164,6 +163,7 @@ sub connector_response {
|
|||||||
|
|
||||||
my $json = $1;
|
my $json = $1;
|
||||||
eval {
|
eval {
|
||||||
|
$self->{output}->output_add(long_msg => $json, debug => 1);
|
||||||
$self->{result} = JSON->new->utf8->decode($json);
|
$self->{result} = JSON->new->utf8->decode($json);
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user