mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-24 22:25:02 +02:00
fix(openvpn/omi): password sent (#3395)
This commit is contained in:
parent
9069f01dcd
commit
19de10b19f
@ -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