This is a modified version of WebLogicHealthState.js. This takes the "state" metric from your JDBCDataSourceRuntime MBean and converts it to integers. Please open the file and look at the header notation about how to setup your IntroscopeAgent.profile for JMX.
From the old community site. Created by Torsten Juerge.