mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-29 08:34:46 +02:00
+ Fix netdom mode
This commit is contained in:
parent
312d8321e6
commit
686a7c7845
@ -54,9 +54,9 @@ sub netdom {
|
|||||||
my $netdom_cmd = 'netdom verify ';
|
my $netdom_cmd = 'netdom verify ';
|
||||||
$netdom_cmd .= ' /Domain:' . $self->{option_results}->{domain} if (defined($self->{option_results}->{domain}) && $self->{option_results}->{domain} ne '');
|
$netdom_cmd .= ' /Domain:' . $self->{option_results}->{domain} if (defined($self->{option_results}->{domain}) && $self->{option_results}->{domain} ne '');
|
||||||
if (defined($self->{option_results}->{workstation})) {
|
if (defined($self->{option_results}->{workstation})) {
|
||||||
$netdom_cmd .= ' ' . . $self->{option_results}->{workstation};
|
$netdom_cmd .= ' ' . $self->{option_results}->{workstation};
|
||||||
} else {
|
} else {
|
||||||
$netdom_cmd .= ' ' . . Win32::NodeName();
|
$netdom_cmd .= ' ' . Win32::NodeName();
|
||||||
}
|
}
|
||||||
|
|
||||||
my ($stdout, $exit_code) = centreon::plugins::misc::windows_execute(output => $self->{output},
|
my ($stdout, $exit_code) = centreon::plugins::misc::windows_execute(output => $self->{output},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user