--- pgsql.monitor 2002/07/10 08:43:16 1.1 +++ pgsql.monitor 2002/07/10 08:50:00 1.2 @@ -46,8 +46,8 @@ # uncomment these two lines and provide suitable information if you don't # want to pass sensitive information on the command line -#$options{username} ||= "username"; -#$options{password} ||= "password"; +$options{username} ||= "postgres"; +$options{password} ||= ""; $mode="Pg"; if ($options{host} eq ""){ @@ -57,7 +57,7 @@ $options{"port"=>"5432"}; } -if (($options{username} eq "") || ($options{password} eq "") || ($options{database} eq "")){ +if (($options{username} eq "") || (! defined $options{password}) || ($options{database} eq "")){ print <