Ad Widget
Collapse
Orabbix:"Another way to monitor Oracle reloaded"
Collapse
X
-
Andrea Dalle Vacche
website:http://www.smartmarmot.com/
e-mail:
Author of:Mastering Zabbix Book - second edition
Zabbix Network Monitoring Essentials -
Dalle thanks for your quick reply and support!
My items are also all trappers.
I have attached an screenshot of the trigger history.
Also in the server log I see this and I think this has to do with the trigger:
Expression [{17038}<50|{17039}<50|{17040}<50|{17041}<50] cannot be evaluated: Evaluation failed for function: avgComment
-
On my environment doesen't happen, Orabbix is running on Oracle 10g all the items have their own values?Andrea Dalle Vacche
website:http://www.smartmarmot.com/
e-mail:
Author of:Mastering Zabbix Book - second edition
Zabbix Network Monitoring EssentialsComment
-
if i'm right then it easy to explain.
the oracle checks with orabbix are trappers, that means that zabbix won't know about the status of the triggers, they are filled by orabbix.
so if your databases are down you have to make an extra check, prob. on the host where the database is running.
or make a trigger that checks the last update date/time.Comment
-
ok I'll try to explain:every item on Orabbix is trapper.
There is an Item that is made for this reason that is alive.
Orabbix send alive="0" if database is down and there is a trigger connected.
All the other trigger will never go on fire because if Orabbix can't retrieve data and can not send it..
Anyway the work of "alive" is exactly that one.
If your alive trigger is not gone on fire this is a trouble.Andrea Dalle Vacche
website:http://www.smartmarmot.com/
e-mail:
Author of:Mastering Zabbix Book - second edition
Zabbix Network Monitoring EssentialsComment
-
sorry i didn't see your reply that is absolutely rightif i'm right then it easy to explain.
the oracle checks with orabbix are trappers, that means that zabbix won't know about the status of the triggers, they are filled by orabbix.
so if your databases are down you have to make an extra check, prob. on the host where the database is running.
or make a trigger that checks the last update date/time.
be patience
Andrea Dalle Vacche
website:http://www.smartmarmot.com/
e-mail:
Author of:Mastering Zabbix Book - second edition
Zabbix Network Monitoring EssentialsComment
-
Andrea Dalle Vacche
website:http://www.smartmarmot.com/
e-mail:
Author of:Mastering Zabbix Book - second edition
Zabbix Network Monitoring EssentialsComment
-
there are 5 instances:
(orcl-1, orcl-2, orcl-3) - DOWN since yesterdey
(orcl-4, orcl-5) - UP
but they all are GREEN
Code:# tail orabbix.log -n 40 2011-05-12 16:14:51,477 [pool-1-thread-85] INFO Orabbix - Done with dbJob on database orcl-1 QueryList elapsed time 5 ms 2011-05-12 16:14:51,477 [pool-1-thread-74] ERROR Orabbix - Error on dbJob for database orcl-2 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:14:51,477 [pool-1-thread-74] INFO Orabbix - Done with dbJob on database orcl-2 QueryList elapsed time 4 ms 2011-05-12 16:14:51,479 [pool-1-thread-12] ERROR Orabbix - Error on dbJob for database orcl-3 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:14:51,479 [pool-1-thread-12] INFO Orabbix - Done with dbJob on database orcl-3 QueryList elapsed time 1 ms 2011-05-12 16:14:51,482 [pool-1-thread-15] INFO Orabbix - Done with dbJob on database orcl-5 QueryList elapsed time 3 ms 2011-05-12 16:14:53,617 [pool-1-thread-24] INFO Orabbix - Done with dbJob on database orcl-4 QueryList elapsed time 2147 ms 2011-05-12 16:15:51,488 [pool-1-thread-100] ERROR Orabbix - Error on dbJob for database orcl-1 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:15:51,488 [pool-1-thread-100] INFO Orabbix - Done with dbJob on database orcl-1 QueryList elapsed time 5 ms 2011-05-12 16:15:51,489 [pool-1-thread-89] ERROR Orabbix - Error on dbJob for database orcl-2 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:15:51,489 [pool-1-thread-89] INFO Orabbix - Done with dbJob on database orcl-2 QueryList elapsed time 1 ms 2011-05-12 16:15:51,491 [pool-1-thread-65] ERROR Orabbix - Error on dbJob for database orcl-3 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:15:51,491 [pool-1-thread-65] INFO Orabbix - Done with dbJob on database orcl-3 QueryList elapsed time 1 ms 2011-05-12 16:15:51,494 [pool-1-thread-28] INFO Orabbix - Done with dbJob on database orcl-5 QueryList elapsed time 2 ms 2011-05-12 16:15:55,267 [pool-1-thread-29] INFO Orabbix - Done with dbJob on database orcl-4 QueryList elapsed time 3786 ms 2011-05-12 16:16:51,499 [pool-1-thread-76] ERROR Orabbix - Error on dbJob for database orcl-1 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:16:51,499 [pool-1-thread-76] INFO Orabbix - Done with dbJob on database orcl-1 QueryList elapsed time 4 ms 2011-05-12 16:16:51,500 [pool-1-thread-75] ERROR Orabbix - Error on dbJob for database orcl-2 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:16:51,500 [pool-1-thread-75] INFO Orabbix - Done with dbJob on database orcl-2 QueryList elapsed time 2 ms 2011-05-12 16:16:51,502 [pool-1-thread-70] ERROR Orabbix - Error on dbJob for database orcl-3 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:16:51,502 [pool-1-thread-70] INFO Orabbix - Done with dbJob on database orcl-3 QueryList elapsed time 1 ms 2011-05-12 16:16:51,505 [pool-1-thread-84] INFO Orabbix - Done with dbJob on database orcl-5 QueryList elapsed time 3 ms 2011-05-12 16:16:53,554 [pool-1-thread-3] INFO Orabbix - Done with dbJob on database orcl-4 QueryList elapsed time 2060 ms 2011-05-12 16:17:51,510 [pool-1-thread-41] ERROR Orabbix - Error on dbJob for database orcl-1 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:17:51,510 [pool-1-thread-41] INFO Orabbix - Done with dbJob on database orcl-1 QueryList elapsed time 4 ms 2011-05-12 16:17:51,510 [pool-1-thread-64] ERROR Orabbix - Error on dbJob for database orcl-2 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:17:51,510 [pool-1-thread-64] INFO Orabbix - Done with dbJob on database orcl-2 QueryList elapsed time 1 ms 2011-05-12 16:17:51,511 [pool-1-thread-83] ERROR Orabbix - Error on dbJob for database orcl-3 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:17:51,512 [pool-1-thread-83] INFO Orabbix - Done with dbJob on database orcl-3 QueryList elapsed time 2 ms 2011-05-12 16:17:56,740 [pool-1-thread-10] INFO Orabbix - Done with dbJob on database orcl-5 QueryList elapsed time 5228 ms 2011-05-12 16:18:38,342 [pool-1-thread-93] INFO Orabbix - Done with dbJob on database orcl-4 QueryList elapsed time 46838 ms 2011-05-12 16:18:51,518 [pool-1-thread-9] ERROR Orabbix - Error on dbJob for database orcl-1 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:18:51,518 [pool-1-thread-9] INFO Orabbix - Done with dbJob on database orcl-1 QueryList elapsed time 3 ms 2011-05-12 16:18:51,518 [pool-1-thread-13] ERROR Orabbix - Error on dbJob for database orcl-2 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:18:51,518 [pool-1-thread-13] INFO Orabbix - Done with dbJob on database orcl-2 QueryList elapsed time 1 ms 2011-05-12 16:18:51,521 [pool-1-thread-1] ERROR Orabbix - Error on dbJob for database orcl-3 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:18:51,522 [pool-1-thread-1] INFO Orabbix - Done with dbJob on database orcl-3 QueryList elapsed time 4 ms 2011-05-12 16:18:51,525 [pool-1-thread-99] INFO Orabbix - Done with dbJob on database orcl-5 QueryList elapsed time 3 ms 2011-05-12 16:18:53,370 [pool-1-thread-16] INFO Orabbix - Done with dbJob on database orcl-4 QueryList elapsed time 1856 ms
Last edited by sa22; 12-05-2011, 12:58.Comment
-
please replace with this new .jarthere are 5 instances:
(orcl-1, orcl-2, orcl-3) - DOWN from yesterdey
(orcl-4, orcl-5) - UP
but they all are GREEN
Code:# tail orabbix.log -n 40 2011-05-12 16:14:51,477 [pool-1-thread-85] INFO Orabbix - Done with dbJob on database orcl-1 QueryList elapsed time 5 ms 2011-05-12 16:14:51,477 [pool-1-thread-74] ERROR Orabbix - Error on dbJob for database orcl-2 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:14:51,477 [pool-1-thread-74] INFO Orabbix - Done with dbJob on database orcl-2 QueryList elapsed time 4 ms 2011-05-12 16:14:51,479 [pool-1-thread-12] ERROR Orabbix - Error on dbJob for database orcl-3 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:14:51,479 [pool-1-thread-12] INFO Orabbix - Done with dbJob on database orcl-3 QueryList elapsed time 1 ms 2011-05-12 16:14:51,482 [pool-1-thread-15] INFO Orabbix - Done with dbJob on database orcl-5 QueryList elapsed time 3 ms 2011-05-12 16:14:53,617 [pool-1-thread-24] INFO Orabbix - Done with dbJob on database orcl-4 QueryList elapsed time 2147 ms 2011-05-12 16:15:51,488 [pool-1-thread-100] ERROR Orabbix - Error on dbJob for database orcl-1 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:15:51,488 [pool-1-thread-100] INFO Orabbix - Done with dbJob on database orcl-1 QueryList elapsed time 5 ms 2011-05-12 16:15:51,489 [pool-1-thread-89] ERROR Orabbix - Error on dbJob for database orcl-2 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:15:51,489 [pool-1-thread-89] INFO Orabbix - Done with dbJob on database orcl-2 QueryList elapsed time 1 ms 2011-05-12 16:15:51,491 [pool-1-thread-65] ERROR Orabbix - Error on dbJob for database orcl-3 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:15:51,491 [pool-1-thread-65] INFO Orabbix - Done with dbJob on database orcl-3 QueryList elapsed time 1 ms 2011-05-12 16:15:51,494 [pool-1-thread-28] INFO Orabbix - Done with dbJob on database orcl-5 QueryList elapsed time 2 ms 2011-05-12 16:15:55,267 [pool-1-thread-29] INFO Orabbix - Done with dbJob on database orcl-4 QueryList elapsed time 3786 ms 2011-05-12 16:16:51,499 [pool-1-thread-76] ERROR Orabbix - Error on dbJob for database orcl-1 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:16:51,499 [pool-1-thread-76] INFO Orabbix - Done with dbJob on database orcl-1 QueryList elapsed time 4 ms 2011-05-12 16:16:51,500 [pool-1-thread-75] ERROR Orabbix - Error on dbJob for database orcl-2 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:16:51,500 [pool-1-thread-75] INFO Orabbix - Done with dbJob on database orcl-2 QueryList elapsed time 2 ms 2011-05-12 16:16:51,502 [pool-1-thread-70] ERROR Orabbix - Error on dbJob for database orcl-3 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:16:51,502 [pool-1-thread-70] INFO Orabbix - Done with dbJob on database orcl-3 QueryList elapsed time 1 ms 2011-05-12 16:16:51,505 [pool-1-thread-84] INFO Orabbix - Done with dbJob on database orcl-5 QueryList elapsed time 3 ms 2011-05-12 16:16:53,554 [pool-1-thread-3] INFO Orabbix - Done with dbJob on database orcl-4 QueryList elapsed time 2060 ms 2011-05-12 16:17:51,510 [pool-1-thread-41] ERROR Orabbix - Error on dbJob for database orcl-1 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:17:51,510 [pool-1-thread-41] INFO Orabbix - Done with dbJob on database orcl-1 QueryList elapsed time 4 ms 2011-05-12 16:17:51,510 [pool-1-thread-64] ERROR Orabbix - Error on dbJob for database orcl-2 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:17:51,510 [pool-1-thread-64] INFO Orabbix - Done with dbJob on database orcl-2 QueryList elapsed time 1 ms 2011-05-12 16:17:51,511 [pool-1-thread-83] ERROR Orabbix - Error on dbJob for database orcl-3 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:17:51,512 [pool-1-thread-83] INFO Orabbix - Done with dbJob on database orcl-3 QueryList elapsed time 2 ms 2011-05-12 16:17:56,740 [pool-1-thread-10] INFO Orabbix - Done with dbJob on database orcl-5 QueryList elapsed time 5228 ms 2011-05-12 16:18:38,342 [pool-1-thread-93] INFO Orabbix - Done with dbJob on database orcl-4 QueryList elapsed time 46838 ms 2011-05-12 16:18:51,518 [pool-1-thread-9] ERROR Orabbix - Error on dbJob for database orcl-1 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:18:51,518 [pool-1-thread-9] INFO Orabbix - Done with dbJob on database orcl-1 QueryList elapsed time 3 ms 2011-05-12 16:18:51,518 [pool-1-thread-13] ERROR Orabbix - Error on dbJob for database orcl-2 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:18:51,518 [pool-1-thread-13] INFO Orabbix - Done with dbJob on database orcl-2 QueryList elapsed time 1 ms 2011-05-12 16:18:51,521 [pool-1-thread-1] ERROR Orabbix - Error on dbJob for database orcl-3 QueryList error: org.apache.commons.dbcp.SQLNestedException: Could not retrieve connection info from pool 2011-05-12 16:18:51,522 [pool-1-thread-1] INFO Orabbix - Done with dbJob on database orcl-3 QueryList elapsed time 4 ms 2011-05-12 16:18:51,525 [pool-1-thread-99] INFO Orabbix - Done with dbJob on database orcl-5 QueryList elapsed time 3 ms 2011-05-12 16:18:53,370 [pool-1-thread-16] INFO Orabbix - Done with dbJob on database orcl-4 QueryList elapsed time 1856 ms
Andrea Dalle Vacche
website:http://www.smartmarmot.com/
e-mail:
Author of:Mastering Zabbix Book - second edition
Zabbix Network Monitoring EssentialsComment
-
Are you sure? May be we need orabbix?please replace with this new .jar
http://www.smartmarmot.com/dbforbix-0.2.jarComment
-

yep uploaded wrong file
the right one is
Andrea Dalle Vacche
website:http://www.smartmarmot.com/
e-mail:
Author of:Mastering Zabbix Book - second edition
Zabbix Network Monitoring EssentialsComment
-
Code:[B]# service orabbix start[/B] Starting Orabbix service: # Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Level at main.main(main.java:51) Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Level at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) ... 1 more [B]# tail logs/orabbix.log -n 40[/B] 2011-05-12 17:29:32,527 [main] INFO Orabbix - maxIdleSize=1 2011-05-12 17:29:32,527 [main] INFO Orabbix - maxIdleTime=1800000ms 2011-05-12 17:29:32,527 [main] INFO Orabbix - poolTimeout=100 2011-05-12 17:29:32,527 [main] INFO Orabbix - timeBetweenEvictionRunsMillis=-1 2011-05-12 17:29:32,527 [main] INFO Orabbix - numTestsPerEvictionRun=3 2011-05-12 17:29:32,534 [main] ERROR Orabbix - Error on Configurator for database orcl-1 -->IO Error: The Network Adapter could not establish the connection 2011-05-12 17:29:32,534 [main] INFO Orabbix - This Database orcl-1 removed 2011-05-12 17:29:32,534 [main] INFO Orabbix - DB Pool created: org.apache.commons.dbcp.datasources.SharedPoolDataSource@186f247 2011-05-12 17:29:32,534 [main] INFO Orabbix - URL=jdbc:oracle:thin:@server2.domain.com:1521:orcl-2 2011-05-12 17:29:32,534 [main] INFO Orabbix - maxPoolSize=10 2011-05-12 17:29:32,534 [main] INFO Orabbix - maxIdleSize=1 2011-05-12 17:29:32,534 [main] INFO Orabbix - maxIdleTime=1800000ms 2011-05-12 17:29:32,534 [main] INFO Orabbix - poolTimeout=100 2011-05-12 17:29:32,535 [main] INFO Orabbix - timeBetweenEvictionRunsMillis=-1 2011-05-12 17:29:32,535 [main] INFO Orabbix - numTestsPerEvictionRun=3 2011-05-12 17:29:32,536 [main] ERROR Orabbix - Error on Configurator for database orcl-2 -->IO Error: The Network Adapter could not establish the connection 2011-05-12 17:29:32,537 [main] INFO Orabbix - This Database orcl-2 removed 2011-05-12 17:29:32,537 [main] INFO Orabbix - DB Pool created: org.apache.commons.dbcp.datasources.SharedPoolDataSource@6d0040 2011-05-12 17:29:32,537 [main] INFO Orabbix - URL=jdbc:oracle:thin:@server2.domain.com:1522:orcl-3 2011-05-12 17:29:32,537 [main] INFO Orabbix - maxPoolSize=10 2011-05-12 17:29:32,537 [main] INFO Orabbix - maxIdleSize=1 2011-05-12 17:29:32,537 [main] INFO Orabbix - maxIdleTime=1800000ms 2011-05-12 17:29:32,537 [main] INFO Orabbix - poolTimeout=100 2011-05-12 17:29:32,537 [main] INFO Orabbix - timeBetweenEvictionRunsMillis=-1 2011-05-12 17:29:32,537 [main] INFO Orabbix - numTestsPerEvictionRun=3 2011-05-12 17:29:32,539 [main] ERROR Orabbix - Error on Configurator for database orcl-3 -->IO Error: The Network Adapter could not establish the connection 2011-05-12 17:29:32,539 [main] INFO Orabbix - This Database orcl-3 removedLast edited by sa22; 12-05-2011, 13:42.Comment

Comment