check_postgres
check_postgres copied to clipboard
Add support to exclude by application name on txn_* checks
2 chsets:
- Add support to exclude or include based on application_name. This helps in monitoring long running txn by excluding ones run by particular tools, i.e. pg_dump
- Fix for bug from issue #73
You need to check the PostgreSQL version because the "application_name" was introduced in 9.0 version.
Yes, you are right there.
I guess we could just ignore the whole --{exclude|include}app options if they are running a version older then 9.0, and add in the docs that this is only available for PostgreSQL >= 9.0
The other option would be to fail with an error message on older versions. I really don't like that. And the user should read the docs first.