46 |
|
|
47 |
# uncomment these two lines and provide suitable information if you don't |
# uncomment these two lines and provide suitable information if you don't |
48 |
# want to pass sensitive information on the command line |
# want to pass sensitive information on the command line |
49 |
#$options{username} ||= "username"; |
$options{username} ||= "postgres"; |
50 |
#$options{password} ||= "password"; |
$options{password} ||= ""; |
51 |
|
|
52 |
$mode="Pg"; |
$mode="Pg"; |
53 |
if ($options{host} eq ""){ |
if ($options{host} eq ""){ |
57 |
$options{"port"=>"5432"}; |
$options{"port"=>"5432"}; |
58 |
} |
} |
59 |
|
|
60 |
if (($options{username} eq "") || ($options{password} eq "") || ($options{database} eq "")){ |
if (($options{username} eq "") || (! defined $options{password}) || ($options{database} eq "")){ |
61 |
print <<EOP1; |
print <<EOP1; |
62 |
Usage: postresql.monitor [options] |
Usage: postresql.monitor [options] |
63 |
|
|