mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-04-07 20:35:27 +02:00
fix(openvpn/omi): password sent (#3395)
This commit is contained in:
parent
77e2f794ed
commit
73b1c1608d
@ -159,7 +159,7 @@ sub login {
|
||||
$self->{output}->add_option_msg(short_msg => "Openvpn management interface require a password. please set --omi-password option");
|
||||
$self->{output}->option_exit();
|
||||
}
|
||||
$self->write_omi_protocol(cmd => $self->{omi_password});
|
||||
$self->write_omi_protocol(cmd => $self->{omi_password} . "\n");
|
||||
$message = $self->read_omi_protocol(expected => '^(SUCCESS|ERROR):[^\n]*?\n');
|
||||
if ($message =~ /^ERROR:(.*)/m) {
|
||||
$self->{output}->add_option_msg(short_msg => "Password error [" . $1 . "]");
|
||||
|
Loading…
x
Reference in New Issue
Block a user