mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-31 01:24:35 +02:00
parent
35cea137a2
commit
2b1d6ebc16
@ -68,8 +68,8 @@ sub new {
|
|||||||
$self->{password} = undef;
|
$self->{password} = undef;
|
||||||
$self->{dbname} = undef;
|
$self->{dbname} = undef;
|
||||||
|
|
||||||
$self->{record_separator} = '-====-';
|
$self->{record_separator} = '----====----';
|
||||||
$self->{field_separator} = '#====#';
|
$self->{field_separator} = '-====-';
|
||||||
|
|
||||||
return $self;
|
return $self;
|
||||||
}
|
}
|
||||||
@ -108,7 +108,7 @@ sub check_options {
|
|||||||
$self->{psql_cmd} = $self->{option_results}->{psql_cmd};
|
$self->{psql_cmd} = $self->{option_results}->{psql_cmd};
|
||||||
|
|
||||||
# If we want a command line: password with variable "PGPASSWORD".
|
# If we want a command line: password with variable "PGPASSWORD".
|
||||||
# psql -d template1 -A -R "-====-" -F "#====#" -c "select code from films"
|
# psql -d template1 -A -R "----====-----" -F "-====-" -c "select code from films"
|
||||||
|
|
||||||
if (!defined($self->{host}) || $self->{host} eq '') {
|
if (!defined($self->{host}) || $self->{host} eq '') {
|
||||||
$self->{output}->add_option_msg(short_msg => "Need to specify host argument.");
|
$self->{output}->add_option_msg(short_msg => "Need to specify host argument.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user