check_postgres icon indicating copy to clipboard operation
check_postgres copied to clipboard

custom_query: return result from another column

Open maniutekm opened this issue 8 years ago • 0 comments

  1. Method custom_query displays result from column "result":
my $result = $r->{result};
add_critical "$result";

Is it possible to return data from another column e.g. display:

my $display= $r->{display};
add_critical "$display";

I would like to use $result for detect critical/warning but i want to display value from $display

  1. Is it possible to remove from output: POSTGRES_CUSTOM_QUERY OK: DB "****" (host:*****) (port=****) ?

maniutekm avatar Nov 08 '17 13:11 maniutekm