/[mon-modules]/pgsql.monitor
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /pgsql.monitor

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dpavlin, Wed Jul 10 08:43:16 2002 UTC revision 1.2 by dpavlin, Wed Jul 10 08:50:00 2002 UTC
# Line 46  GetOptions( \%options,"port=s", "usernam Line 46  GetOptions( \%options,"port=s", "usernam
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 ""){
# Line 57  if ($options{port} eq ""){ Line 57  if ($options{port} 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    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26