How to monitor Database Blocking sessions.
Is there a plungin for this.If yes, Please provide the plugin.
Regards,
Pratapa
How to monitor Database Blocking sessions
Re: How to monitor Database Blocking sessions
What kind of DB are you talking about - MSSQL, Oracle, etc.?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: How to monitor Database Blocking sessions
It is Oracle database.
Re: How to monitor Database Blocking sessions
The older check_oracle_health plugins didn't have a "blocking-session" mode, but the newer ones do:
https://labs.consol.de/nagios/check_ora ... index.html
From the changelog:
or
https://labs.consol.de/nagios/check_ora ... index.html
From the changelog:
You could backup your "old" plugin (just in case), then download, and compile the latest version (3.2.1.1) on your nagios machine. Test it from the command line to make sure it works. You could run something like this:3.2.1 - 2019-10-10
add mode blocking-sessions (Thanks dbmasters.at for the sql)
Code: Select all
/usr/local/nagios/libexec/check_oracle_health --connect 'x.x.x.x:1521/yyyy' --username 'username' --password 'password' --mode sql --name="select count(*) from Gv\$"$"session where blocking_session is not NULL order by blocking_session" --warning 50 --critical 200Code: Select all
/usr/local/nagios/libexec/check_oracle_health --connect 'x.x.x.x:1521/yyyy' --username 'username' --password 'password' --mode sql --name="select count(*) from v\$session where blocking_session is not NULL order by blocking_session" --warning 50 --critical 200Be sure to check out our Knowledgebase for helpful articles and solutions!