|
MonitorJdbcConnectionPools
JDBC connection pool usage can be monitored for the entire server (all connection pools) or with a named connection pool. It is measured as: percent used/maximum configured To monitor, use the following plugin invocation: check_was -s connectionpool -w 80 -c 90 -p <server name> -n <connection pool name> -w sets the threshold percent used for issuing warnings -c sets the threshold percent used for issuing critical issues -p sets the server name in check_was.servers to be used -n sets the name of the connection pool to be monitored. Optional, if not provided all connection pools will be checked. |
► Sign in to add a comment
Well that only monitors all connections of all DataSources? of that JDBC Provider. More realisticly someone would like to monitor individual DataSource? Pools to spot problems with a certain database. How can that be done?
I think this project is doing the job http://code.google.com/p/nagios-was/wiki/MonitorJdbcConnectionPools
You have to use the getSubStats() method, see an example here: http://code.google.com/p/wasagent/source/browse/trunk/wasagent/src/net/wait4it/wasagent/tests/JdbcProviderTest.java