Typo, thanks Rob.
authorGreg Sabino Mullane <greg@endpoint.com>
Fri, 4 Apr 2008 21:35:07 +0000 (17:35 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Fri, 4 Apr 2008 21:35:07 +0000 (17:35 -0400)
check_postgres.pl

index f03a31b5b928ad811104551044a9c08cee3e8832..7e0a33790564889ec8768e1e9ccf5043542189bd 100755 (executable)
@@ -691,7 +691,7 @@ sub run_command {
                }
                push @args => '-p', $db->{port};
 
-               if (defined $db->{pass}) {
+               if (defined $db->{dbpass}) {
                        ## Make a custom PGPASSFILE. Far better to simply use your own .pgpass of course
                        ($passfh,$passfile) = tempfile('nagios.XXXXXXXX', SUFFIX => '.tmp', DIR => $tempdir);
                        $VERBOSE >= 3 and warn "Created temporary pgpass file $passfile\n";