Tim Maier
2008-11-17 07:27:07 UTC
Hi @ all,
does anyone know how to monitor an oracle db?
I tried it and downloaded the ojdbc5.jar into OpenNMS\lib
If I use this in capsd:
<protocol-plugin protocol="Oracle-JDBC" class-name="org.opennms.netmgt.capsd.plugins.JDBCPlugin" scan="on" user-defined="false">
<property key="user" value="XXX"/>
<property key="password" value="XXX"/>
<property key="retry" value="3"/>
<property key="timeout" value="5000"/>
<property key="driver" value="oracle.jdbc.driver.OracleDriver"/>
<property key="url" value="jdbc:oracle:thin:@OPENNMS_JDBC_HOSTNAME:1521/xxx"/>
</protocol-plugin>
Nothing gets detected an nothing is written in the capsd.log
If I use this:
<protocol-plugin protocol="Oracle-JDBC3" class-name="org.opennms.netmgt.capsd.plugins.JDBCPlugin" scan="on" user-defined="false">
<property key="user" value="xxx"/>
<property key="password" value="xxx"/>
<property key="retry" value="3"/>
<property key="timeout" value="5000"/>
<property key="driver" value="oracle.jdbc.driver.OracleDriver"/>
<property key="url" value="jdbc:oracle:oci:@OPENNMS_JDBC_HOSTNAME:1521/xxx"/>
</protocol-plugin>
I get this error in capsd.log
2008-11-14 12:06:14,562 WARN [Capsd Rescan Pool-fiber0] IfCollector: IfCollector: Caught an exception when testing for protocol Oracle-JDBC3 on host XXX.XXX.XXX.XXX
java.lang.UnsatisfiedLinkError: no ocijdbc11 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
But the ocijdbc11.dll is in the opennms\lib directory
I also tried to check the databases with other programs to verify that all parameters are right
Thanks for your help
Tim
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. *http://www.pc-sicherheit.web.de/startseite/?mc=022220* [http://www.pc-sicherheit.web.de/startseite/?mc=022220]
does anyone know how to monitor an oracle db?
I tried it and downloaded the ojdbc5.jar into OpenNMS\lib
If I use this in capsd:
<protocol-plugin protocol="Oracle-JDBC" class-name="org.opennms.netmgt.capsd.plugins.JDBCPlugin" scan="on" user-defined="false">
<property key="user" value="XXX"/>
<property key="password" value="XXX"/>
<property key="retry" value="3"/>
<property key="timeout" value="5000"/>
<property key="driver" value="oracle.jdbc.driver.OracleDriver"/>
<property key="url" value="jdbc:oracle:thin:@OPENNMS_JDBC_HOSTNAME:1521/xxx"/>
</protocol-plugin>
Nothing gets detected an nothing is written in the capsd.log
If I use this:
<protocol-plugin protocol="Oracle-JDBC3" class-name="org.opennms.netmgt.capsd.plugins.JDBCPlugin" scan="on" user-defined="false">
<property key="user" value="xxx"/>
<property key="password" value="xxx"/>
<property key="retry" value="3"/>
<property key="timeout" value="5000"/>
<property key="driver" value="oracle.jdbc.driver.OracleDriver"/>
<property key="url" value="jdbc:oracle:oci:@OPENNMS_JDBC_HOSTNAME:1521/xxx"/>
</protocol-plugin>
I get this error in capsd.log
2008-11-14 12:06:14,562 WARN [Capsd Rescan Pool-fiber0] IfCollector: IfCollector: Caught an exception when testing for protocol Oracle-JDBC3 on host XXX.XXX.XXX.XXX
java.lang.UnsatisfiedLinkError: no ocijdbc11 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
But the ocijdbc11.dll is in the opennms\lib directory
I also tried to check the databases with other programs to verify that all parameters are right
Thanks for your help
Tim
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 30 Tage
kostenlos testen. *http://www.pc-sicherheit.web.de/startseite/?mc=022220* [http://www.pc-sicherheit.web.de/startseite/?mc=022220]