CheckMKs Postgres agent plugin communicates metrics about shared/exclusive lock usage. But it doesn’t currently warn about sessions which have been blocked for a long time. I could really use that, in the same way that the MSSQL agent plugin will warn about blocked sessions.
Am I overlooking something in the current Postgres agent plugin? Or would it require adding some code to the agent plugin (and to CheckMK for interpreting it)? If the latter is the case, I might give it a shot.