summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck_postgres.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index e9c499939..b432e16b9 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -901,7 +901,7 @@ our $SIMPLE = $OUTPUT eq 'simple' ? 1 : 0;
## See if we need to invoke something based on our name
our $action = $opt{action} || '';
-if ($ME =~ /check_postgres_(\w+)/) {
+if ($ME =~ /check_postgres_(\w+)/ and ! defined $opt{action}) {
$action = $1;
}