mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
wip
This commit is contained in:
parent
2f86427fcb
commit
5ae453877c
@ -61,7 +61,7 @@ sub init {
|
||||
for (my $i = 0; $i < scalar(@{$options_result->{server}}); $i++) {
|
||||
next if ($options_result->{server}->[$i] eq '');
|
||||
|
||||
$self->{sqldefault}->{dbi}->[$i] = { data_source => 'DB2:PROTOCOL=TCPIP;hostname=' . $options_result->{server}->[$i] };
|
||||
$self->{sqldefault}->{dbi}->[$i] = { data_source => 'DB2:PROTOCOL=TCPIP;HOSTNAME=' . $options_result->{server}->[$i] };
|
||||
if (!defined($options_result->{database}) || $options_result->{database} eq '') {
|
||||
$self->{output}->add_option_msg(short_msg => 'Need to specify --database option');
|
||||
$self->{output}->option_exit();
|
||||
|
Loading…
x
Reference in New Issue
Block a user