Ad Widget

Collapse

DBforBIX

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • esawyja
    Member
    Zabbix Certified Specialist
    • Dec 2011
    • 54

    #136
    bump can anyone help with this please

    bump can anyone help with this please

    Comment

    • esawyja
      Member
      Zabbix Certified Specialist
      • Dec 2011
      • 54

      #137
      Let me answer my own question

      It seems that there were old PIDs running of dbforbix, I killed them and restarted, now I'm not getting any connection errors anymore
      zabbix:~ # /etc/init.d/dbforbix stop
      redirecting to systemctl
      zabbix:~ # ps -ef | grep dbforbix
      root 9722 1 0 Nov01 ? 00:06:30 java -Duser.language=en -Duser.country=US -Dlog4j.configuration=./conf/log4j.properties -cp lib/commons-codec-1.4.jar:lib/commons-daemon-1.0.5.jar:lib/commons-dbcp-1.4.jar:lib/commons-lang-2.5.jar:lib/commons-logging-1.1.1.jar:lib/commons-pool-1.5.4.jar:lib/jtds-1.2.5.jar:lib/log4j-1.2.15.jar:lib/mysql-connector-java-5.1.14-bin.jar:lib/postgresql-9.0-801.jdbc4.jar:.:./dbforbix-0.6.jar com.smartmarmot.dbforbix.bootstrap start ./conf/config.props
      root 10402 1 0 Nov01 ? 00:06:29 java -Duser.language=en -Duser.country=US -Dlog4j.configuration=./conf/log4j.properties -cp lib/commons-codec-1.4.jar:lib/commons-daemon-1.0.5.jar:lib/commons-dbcp-1.4.jar:lib/commons-lang-2.5.jar:lib/commons-logging-1.1.1.jar:lib/commons-pool-1.5.4.jar:lib/jtds-1.2.5.jar:lib/log4j-1.2.15.jar:lib/mysql-connector-java-5.1.14-bin.jar:lib/postgresql-9.0-801.jdbc4.jar:.:./dbforbix-0.6.jar com.smartmarmot.dbforbix.bootstrap start ./conf/config.props
      root 12570 1 0 Nov01 ? 00:04:45 java -Duser.language=en -Duser.country=US -Dlog4j.configuration=./conf/log4j.properties -cp lib/commons-codec-1.4.jar:lib/commons-daemon-1.0.5.jar:lib/commons-dbcp-1.4.jar:lib/commons-lang-2.5.jar:lib/commons-logging-1.1.1.jar:lib/commons-pool-1.5.4.jar:lib/jtds-1.2.5.jar:lib/log4j-1.2.15.jar:lib/mysql-connector-java-5.1.14-bin.jar:lib/ojdbc6.jar:lib/postgresql-9.0-801.jdbc4.jar:.:./dbforbix-0.6.jar com.smartmarmot.dbforbix.bootstrap start ./conf/config.props
      root 13132 1 0 Nov01 ? 00:04:37 java -Duser.language=en -Duser.country=US -Dlog4j.configuration=./conf/log4j.properties -cp lib/commons-codec-1.4.jar:lib/commons-daemon-1.0.5.jar:lib/commons-dbcp-1.4.jar:lib/commons-lang-2.5.jar:lib/commons-logging-1.1.1.jar:lib/commons-pool-1.5.4.jar:lib/hsqldb.jar:lib/jtds-1.2.5.jar:lib/log4j-1.2.15.jar:lib/mysql-connector-java-5.1.14-bin.jar:lib/ojdbc6.jar:lib/postgresql-9.0-801.jdbc4.jar:.:./dbforbix-0.6.jar com.smartmarmot.dbforbix.bootstrap start ./conf/config.props
      root 32236 31920 0 09:09 pts/2 00:00:00 grep dbforbix
      zabbix:~ # ps -ef | grep dbforbix
      root 9722 1 0 Nov01 ? 00:06:30 java -Duser.language=en -Duser.country=US -Dlog4j.configuration=./conf/log4j.properties -cp lib/commons-codec-1.4.jar:lib/commons-daemon-1.0.5.jar:lib/commons-dbcp-1.4.jar:lib/commons-lang-2.5.jar:lib/commons-logging-1.1.1.jar:lib/commons-pool-1.5.4.jar:lib/jtds-1.2.5.jar:lib/log4j-1.2.15.jar:lib/mysql-connector-java-5.1.14-bin.jar:lib/postgresql-9.0-801.jdbc4.jar:.:./dbforbix-0.6.jar com.smartmarmot.dbforbix.bootstrap start ./conf/config.props
      root 10402 1 0 Nov01 ? 00:06:29 java -Duser.language=en -Duser.country=US -Dlog4j.configuration=./conf/log4j.properties -cp lib/commons-codec-1.4.jar:lib/commons-daemon-1.0.5.jar:lib/commons-dbcp-1.4.jar:lib/commons-lang-2.5.jar:lib/commons-logging-1.1.1.jar:lib/commons-pool-1.5.4.jar:lib/jtds-1.2.5.jar:lib/log4j-1.2.15.jar:lib/mysql-connector-java-5.1.14-bin.jar:lib/postgresql-9.0-801.jdbc4.jar:.:./dbforbix-0.6.jar com.smartmarmot.dbforbix.bootstrap start ./conf/config.props
      root 12570 1 0 Nov01 ? 00:04:45 java -Duser.language=en -Duser.country=US -Dlog4j.configuration=./conf/log4j.properties -cp lib/commons-codec-1.4.jar:lib/commons-daemon-1.0.5.jar:lib/commons-dbcp-1.4.jar:lib/commons-lang-2.5.jar:lib/commons-logging-1.1.1.jar:lib/commons-pool-1.5.4.jar:lib/jtds-1.2.5.jar:lib/log4j-1.2.15.jar:lib/mysql-connector-java-5.1.14-bin.jar:lib/ojdbc6.jar:lib/postgresql-9.0-801.jdbc4.jar:.:./dbforbix-0.6.jar com.smartmarmot.dbforbix.bootstrap start ./conf/config.props
      root 13132 1 0 Nov01 ? 00:04:37 java -Duser.language=en -Duser.country=US -Dlog4j.configuration=./conf/log4j.properties -cp lib/commons-codec-1.4.jar:lib/commons-daemon-1.0.5.jar:lib/commons-dbcp-1.4.jar:lib/commons-lang-2.5.jar:lib/commons-logging-1.1.1.jar:lib/commons-pool-1.5.4.jar:lib/hsqldb.jar:lib/jtds-1.2.5.jar:lib/log4j-1.2.15.jar:lib/mysql-connector-java-5.1.14-bin.jar:lib/ojdbc6.jar:lib/postgresql-9.0-801.jdbc4.jar:.:./dbforbix-0.6.jar com.smartmarmot.dbforbix.bootstrap start ./conf/config.props
      root 32238 31920 0 09:09 pts/2 00:00:00 grep dbforbix
      zabbix:~ # kill -9 10402 12570 13132
      zabbix:~ # ps -ef | grep dbforbix
      root 9722 1 0 Nov01 ? 00:06:30 java -Duser.language=en -Duser.country=US -Dlog4j.configuration=./conf/log4j.properties -cp lib/commons-codec-1.4.jar:lib/commons-daemon-1.0.5.jar:lib/commons-dbcp-1.4.jar:lib/commons-lang-2.5.jar:lib/commons-logging-1.1.1.jar:lib/commons-pool-1.5.4.jar:lib/jtds-1.2.5.jar:lib/log4j-1.2.15.jar:lib/mysql-connector-java-5.1.14-bin.jar:lib/postgresql-9.0-801.jdbc4.jar:.:./dbforbix-0.6.jar com.smartmarmot.dbforbix.bootstrap start ./conf/config.props
      root 32247 31920 0 09:10 pts/2 00:00:00 grep dbforbix
      zabbix:~ # kill -9 9722
      zabbix:~ # ps -ef | grep dbforbix
      zabbix:~ # /etc/init.d/dbforbix start
      redirecting to systemctl
      zabbix:~ # ps -ef | grep dbforbix
      root 32366 1 12 09:11 ? 00:00:00 java -Duser.language=en -Duser.country=US -Dlog4j.configuration=./conf/log4j.properties -cp lib/commons-codec-1.4.jar:lib/commons-daemon-1.0.5.jar:lib/commons-dbcp-1.4.jar:lib/commons-lang-2.5.jar:lib/commons-logging-1.1.1.jar:lib/commons-pool-1.5.4.jar:lib/hsqldb.jar:lib/jtds-1.2.5.jar:lib/log4j-1.2.15.jar:lib/mysql-connector-java-5.1.14-bin.jar:lib/ojdbc6.jar:lib/postgresql-9.0-801.jdbc4.jar:.:./dbforbix-0.6.jar com.smartmarmot.dbforbix.bootstrap start ./conf/config.props
      root 32383 31920 0 09:11 pts/2 00:00:00 grep dbforbix
      zabbix:~ # cd /opt/dbforbix/logs
      zabbix:/opt/dbforbix/logs # tail -f dbforbix.log
      2012-11-05 09:11:42,396 [main] INFO DBforBIX - Connected as zabbix
      2012-11-05 09:11:42,683 [main] INFO DBforBIX - --------- on Database -> postgres
      2012-11-05 09:11:43,070 [pool-1-thread-8] INFO DBforBIX - Done with dbJob on database xxx elapsed time 209 ms
      2012-11-05 09:11:44,363 [pool-1-thread-5] INFO DBforBIX - Done with dbJob on database xxx elapsed time 1514 ms
      2012-11-05 09:11:46,660 [pool-1-thread-2] INFO DBforBIX - Done with dbJob on database xxx elapsed time 3840 ms
      2012-11-05 09:11:46,780 [pool-1-thread-1] INFO DBforBIX - Done with dbJob on database xxx elapsed time 3980 ms
      2012-11-05 09:11:49,960 [pool-1-thread-6] INFO DBforBIX - Done with dbJob on database xxx elapsed time 7106 ms
      2012-11-05 09:11:50,072 [pool-1-thread-7] INFO DBforBIX - Done with dbJob on database xxx elapsed time 7213 ms
      2012-11-05 09:11:50,229 [pool-1-thread-9] INFO DBforBIX - Done with dbJob on database xxx elapsed time 7365 ms
      2012-11-05 09:12:09,896 [pool-1-thread-4] INFO DBforBIX - Done with dbJob on database xxx elapsed time 27052 ms
      2012-11-05 09:12:42,912 [pool-1-thread-10] INFO DBforBIX - Done with dbJob on database xxx elapsed time 25 ms
      2012-11-05 09:12:42,939 [pool-1-thread-11] INFO DBforBIX - Done with dbJob on database xxx elapsed time 38 ms
      2012-11-05 09:12:43,012 [pool-1-thread-14] INFO DBforBIX - Done with dbJob on database xxx elapsed time 49 ms
      2012-11-05 09:12:43,018 [pool-1-thread-17] INFO DBforBIX - Done with dbJob on database xxx elapsed time 24 ms
      2012-11-05 09:12:43,272 [pool-1-thread-15] INFO DBforBIX - Done with dbJob on database xxx elapsed time 295 ms
      2012-11-05 09:12:43,276 [pool-1-thread-16] INFO DBforBIX - Done with dbJob on database xxx elapsed time 291 ms
      2012-11-05 09:12:43,278 [pool-1-thread-13] INFO DBforBIX - Done with dbJob on database xxx elapsed time 323 ms
      2012-11-05 09:12:43,314 [pool-1-thread-18] INFO DBforBIX - Done with dbJob on database xxx elapsed time 295 ms
      2012-11-05 09:12:56,146 [pool-1-thread-12] INFO DBforBIX - Done with dbJob on database xxx elapsed time 13217 ms
      2012-11-05 09:13:43,294 [pool-1-thread-26] INFO DBforBIX - Done with dbJob on database xxx elapsed time 125 ms
      2012-11-05 09:13:43,789 [pool-1-thread-23] INFO DBforBIX - Done with dbJob on database xxx elapsed time 635 ms
      2012-11-05 09:13:45,202 [pool-1-thread-19] INFO DBforBIX - Done with dbJob on database xxx elapsed time 2142 ms
      2012-11-05 09:13:45,351 [pool-1-thread-20] INFO DBforBIX - Done with dbJob on database xxx elapsed time 2261 ms
      2012-11-05 09:13:49,310 [pool-1-thread-24] INFO DBforBIX - Done with dbJob on database xxx elapsed time 6148 ms
      2012-11-05 09:13:49,500 [pool-1-thread-25] INFO DBforBIX - Done with dbJob on database xxx elapsed time 6336 ms
      2012-11-05 09:13:49,575 [pool-1-thread-27] INFO DBforBIX - Done with dbJob on database xxx elapsed time 6406 ms
      2012-11-05 09:14:07,100 [pool-1-thread-22] INFO DBforBIX - Done with dbJob on database xxx elapsed time 23962 ms
      2012-11-05 09:14:43,219 [pool-1-thread-28] INFO DBforBIX - Done with dbJob on database xxx elapsed time 22 ms
      2012-11-05 09:14:43,239 [pool-1-thread-29] INFO DBforBIX - Done with dbJob on database xxx elapsed time 17 ms
      2012-11-05 09:14:43,299 [pool-1-thread-32] INFO DBforBIX - Done with dbJob on database xxx elapsed time 12 ms
      2012-11-05 09:14:43,314 [pool-1-thread-35] INFO DBforBIX - Done with dbJob on database xxx elapsed time 6 ms
      2012-11-05 09:14:43,579 [pool-1-thread-33] INFO DBforBIX - Done with dbJob on database xxx elapsed time 279 ms
      2012-11-05 09:14:43,581 [pool-1-thread-31] INFO DBforBIX - Done with dbJob on database xxx elapsed time 305 ms
      2012-11-05 09:14:43,592 [pool-1-thread-34] INFO DBforBIX - Done with dbJob on database xxx elapsed time 287 ms
      2012-11-05 09:14:43,599 [pool-1-thread-36] INFO DBforBIX - Done with dbJob on database xxx elapsed time 290 ms
      2012-11-05 09:15:06,174 [pool-1-thread-30] INFO DBforBIX - Done with dbJob on database xxx elapsed time 22917 ms
      2012-11-05 09:15:43,909 [pool-1-thread-44] INFO DBforBIX - Done with dbJob on database xxx elapsed time 128 ms
      2012-11-05 09:15:43,934 [pool-1-thread-41] INFO DBforBIX - Done with dbJob on database xxx elapsed time 165 ms
      2012-11-05 09:15:44,923 [pool-1-thread-37] INFO DBforBIX - Done with dbJob on database xxx elapsed time 1223 ms
      2012-11-05 09:15:45,031 [pool-1-thread-38] INFO DBforBIX - Done with dbJob on database xxx elapsed time 1303 ms
      2012-11-05 09:15:50,038 [pool-1-thread-42] INFO DBforBIX - Done with dbJob on database xxxx elapsed time 6266 ms
      2012-11-05 09:15:50,108 [pool-1-thread-43] INFO DBforBIX - Done with dbJob on database xxx elapsed time 6333 ms
      2012-11-05 09:15:50,214 [pool-1-thread-45] INFO DBforBIX - Done with dbJob on database xxx elapsed time 6428 ms

      4 Postgres and 3 Oracle databases being monitored now

      Comment

      • esawyja
        Member
        Zabbix Certified Specialist
        • Dec 2011
        • 54

        #138
        Troubleshooting DBforBix

        This morning when I came in, the last interrogation of DBs were yesterday late

        [zabbix logs]# ps -ef | grep dbforbix
        root 4219 4149 0 07:14 pts/0 00:00:00 grep dbforbix
        root 27396 1 0 Nov05 ? 00:01:32 java -Duser.language=en -Duser.country=US -Dlog4j.configuration=./conf/log4j.properties -cp lib/commons-codec-1.4.jar:lib/commons-daemon-1.0.5.jar:lib/commons-dbcp-1.4.jar:lib/commons-lang-2.5.jar:lib/commons-logging-1.1.1.jar:lib/commons-pool-1.5.4.jar:lib/hsqldb.jar:lib/jtds-1.2.5.jar:lib/log4j-1.2.15.jar:lib/mysql-connector-java-5.1.14-bin.jar:lib/ojdbc6.jar:lib/postgresql-9.0-801.jdbc4.jar:.:./dbforbix-0.6.jar com.smartmarmot.dbforbix.bootstrap start ./conf/config.props
        [zabbix logs]# tail -f dbforbix.log
        2012-11-05 18:32:20,506 [pool-1-thread-165] INFO DBforBIX - Done with dbJob on database xxxx elapsed time 870 ms
        2012-11-05 18:32:45,684 [pool-1-thread-165] INFO DBforBIX - Done with dbJob on database www elapsed time 25178 ms
        2012-11-05 18:32:45,726 [pool-1-thread-165] INFO DBforBIX - Done with dbJob on database yyy elapsed time 42 ms
        2012-11-05 18:32:52,110 [pool-1-thread-165] INFO DBforBIX - Done with dbJob on database qqq elapsed time 6384 ms
        2012-11-05 18:32:58,519 [pool-1-thread-165] INFO DBforBIX - Done with dbJob on database kkk elapsed time 6409 ms
        2012-11-05 18:32:58,726 [pool-1-thread-165] INFO DBforBIX - Done with dbJob on database lll elapsed time 207 ms
        2012-11-05 18:33:05,809 [pool-1-thread-165] INFO DBforBIX - Done with dbJob on database sss elapsed time 7083 ms
        2012-11-05 18:33:19,645 [pool-1-thread-165] INFO DBforBIX - Done with dbJob on database mmm elapsed time 4 ms
        2012-11-05 18:33:19,653 [pool-1-thread-165] INFO DBforBIX - Done with dbJob on database kkk elapsed time 8 ms
        ^C
        [zabbix logs]#

        But no error messages and DBforBix was running in memory, where can I troubleshoot this, any ideas?
        Starting to think that I should move back to PostBix and Orabbix!!

        Comment

        • zebetchet
          Junior Member
          • Jul 2010
          • 2

          #139
          Error start DBForbix service

          Hi, I'm herdi from Indonesia,
          I have been around with zabbix for several months. I found it amazing monitoring system. Previously i used zabbix to monitor my network devices like router, switch, pbx, ups and linux servers. It all based on snmp monitoring & some agent monitoring. Today i have a role at work as DBA, handling something i never touch before, ORACLE database on Solaris server.
          I have tried to use zabbix to monitor the system environment (CPU, Memory, Disk performance, etc) and it all succeed without need root access. I just install agent on the Solaris server to monitor all the environment parameter that i need to monitor. My Zabbix server is CentOS with mysql database. But when it comes to Database Oracle monitoring on Solaris server, i got stuck. I have used dbforbix plugins to do that, but come up with errors like this on connect to the database.
          [root@srm ~]# service dbforbix start
          Starting DBforBIX service:
          [root@srm ~]# Nov 6, 2012 5:18:51 p.m. oracle.jdbc.driver.OracleDriver registerMBeans
          WARNING: Error while registering Oracle JDBC Diagnosability MBean.
          java.lang.NoSuchMethodError: method javax.management.StandardMBean.<init> with signature (Ljava.lang.Class;Z)V was not found.
          at oracle.jdbc.driver.OracleDiagnosabilityMBean.<init >(OracleDiagnosabilityMBean.java:34)
          at oracle.jdbc.driver.OracleDriver.registerMBeans(Ora cleDriver.java:360)
          at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver .java:199)
          at java.security.AccessController.doPrivileged(libgcj .so.10)
          .
          .
          .
          at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj .so.10)
          at java.lang.ClassLoader.loadClass(libgcj.so.10)
          at java.lang.ClassLoader.loadClass(libgcj.so.10)
          at java.lang.Class.forName(libgcj.so.10)
          at java.lang.Class.initializeClass(libgcj.so.10)
          ...13 more
          I believe it's something with Java setting on my zabbix server, but i don't know what cause the errors.
          If any bodybody have experience, pls help.
          Thx, pardon for my bad english.

          Comment

          • esawyja
            Member
            Zabbix Certified Specialist
            • Dec 2011
            • 54

            #140
            DBforBix

            @Herdi , make sure that you have the Oracle driver in your /opt/dbforbix/lib directory, see below
            [root@zabbix lib]# pwd
            /opt/dbforbix/lib
            [root@zabbix lib]# ls -ltr ojdbc6.jar
            -rw-r--r-- 1 root root 2152051 Nov 5 10:11 ojdbc6.jar
            [root@zabbix lib]#

            DBforBIX stopped working again, it just stops sending the queries, no indication in the log files, nothing, where can I look for errors?
            Last edited by esawyja; 07-11-2012, 07:58. Reason: spelling

            Comment

            • esawyja
              Member
              Zabbix Certified Specialist
              • Dec 2011
              • 54

              #141
              DbforBix stops working

              Can anyone help with this, I cannot get any information why DBforBix just stops, any ideas on where to look for errors?

              Comment

              • andreazza
                Junior Member
                Zabbix Certified Specialist
                • Jul 2011
                • 16

                #142
                Originally posted by esawyja
                Can anyone help with this, I cannot get any information why DBforBix just stops, any ideas on where to look for errors?
                try to read at logs
                it is inside of /opt/dbforbix/logs

                the dbforbix proccess is running?
                try /etc/init.d/dbforbix restart
                and post here the result
                i had problem in PIDFILE, when i first install, it was wrong in my config.conf
                should be dbforbix.pid but was orabbix.pid

                Comment

                • esawyja
                  Member
                  Zabbix Certified Specialist
                  • Dec 2011
                  • 54

                  #143
                  dbforbix

                  Hi,
                  There is no errors in the logfiles, look at my previous posts, the restart is ok without any errors

                  [root@zabbix logs]# ls -ltr
                  total 13048
                  -rw-r--r-- 1 root root 5 Nov 12 00:59 dbforbix.pid
                  -rw-r--r-- 1 root root 10485763 Nov 12 10:13 dbforbix.log.1
                  -rw-r--r-- 1 root root 2864987 Nov 12 10:20 dbforbix.log
                  [root@zabbix logs]# /etc/init.d/dbforbix restart
                  Stopping DBforBIX service:
                  Starting DBforBIX service:
                  [root@zabbix logs]# ls -ltr
                  total 13464
                  -rw-r--r-- 1 root root 10485763 Nov 12 10:13 dbforbix.log.1
                  -rw-r--r-- 1 root root 5 Nov 12 10:21 dbforbix.pid
                  -rw-r--r-- 1 root root 3292438 Nov 12 10:21 dbforbix.log
                  [root@zabbix logs]#

                  Comment

                  • esawyja
                    Member
                    Zabbix Certified Specialist
                    • Dec 2011
                    • 54

                    #144
                    Anyone?

                    I'm still having problems with DBforBix, it would just stop sending the queries, from the logfile
                    2012-11-20 16:38:58,493 [pool-1-thread-77] INFO DBforBIX - Done with dbJob on database appsvr1 elapsed time 7112 ms
                    2012-11-20 16:39:15,884 [pool-1-thread-95] INFO DBforBIX - Done with dbJob on database dtedlsvr1 elapsed time 24504 ms
                    2012-11-20 16:39:51,439 [pool-1-thread-86] INFO DBforBIX - Done with dbJob on database JohanDev1 elapsed time 48 ms
                    2012-11-20 16:39:51,441 [pool-1-thread-45] INFO DBforBIX - Done with dbJob on database johandev2 elapsed time 50 ms
                    2012-11-20 16:39:51,584 [pool-1-thread-73] INFO DBforBIX - Done with dbJob on database rsmsvr2 elapsed time 194 ms
                    2012-11-20 16:39:52,132 [pool-1-thread-65] INFO DBforBIX - Done with dbJob on database te4svr1 elapsed time 741 ms
                    2012-11-20 16:39:52,143 [pool-1-thread-34] INFO DBforBIX - Done with dbJob on database GEN8server elapsed time 754 ms
                    2012-11-20 16:39:58,353 [pool-1-thread-10] INFO DBforBIX - Done with dbJob on database appsvr1 elapsed time 6963 ms
                    2012-11-20 16:40:14,812 [pool-1-thread-32] INFO DBforBIX - Done with dbJob on database dlsvr1 elapsed time 23423 ms
                    2012-11-20 16:40:51,400 [pool-1-thread-77] INFO DBforBIX - Done with dbJob on database GEN8server elapsed time 7 ms
                    2012-11-20 16:40:51,402 [pool-1-thread-10] INFO DBforBIX - Done with dbJob on database johandev2 elapsed time 2 ms
                    2012-11-20 16:40:51,403 [pool-1-thread-34] INFO DBforBIX - Done with dbJob on database te4svr1 elapsed time 3 ms
                    2012-11-20 16:40:51,403 [pool-1-thread-32] INFO DBforBIX - Done with dbJob on database JohanDev1 elapsed time 3 ms
                    2012-11-20 16:40:51,433 [pool-1-thread-65] INFO DBforBIX - Done with dbJob on database rsmsvr2 elapsed time 35 ms
                    2012-11-20 16:41:01,159 [pool-1-thread-45] INFO DBforBIX - Done with dbJob on database appsvr1 elapsed time 9762 ms
                    2012-11-20 16:41:17,928 [pool-1-thread-86] INFO DBforBIX - Done with dbJob on database dlsvr1 elapsed time 26531 ms
                    2012-11-20 16:41:51,654 [pool-1-thread-86] INFO DBforBIX - Done with dbJob on database rsmsvr2 elapsed time 251 ms
                    2012-11-20 16:41:52,148 [pool-1-thread-10] INFO DBforBIX - Done with dbJob on database GEN8server elapsed time 747 ms
                    2012-11-20 16:41:53,064 [pool-1-thread-10] INFO DBforBIX - Done with dbJob on database te4svr1 elapsed time 916 ms
                    2012-11-20 16:41:53,105 [pool-1-thread-10] INFO DBforBIX - Done with dbJob on database johandev2 elapsed time 41 ms
                    2012-11-20 16:41:53,144 [pool-1-thread-10] INFO DBforBIX - Done with dbJob on database JohanDev1 elapsed time 39 ms
                    2012-11-20 16:41:58,491 [pool-1-thread-65] INFO DBforBIX - Done with dbJob on database appsvr1 elapsed time 7088 ms
                    2012-11-20 16:42:16,191 [pool-1-thread-32] INFO DBforBIX - Done with dbJob on database dlsvr1 elapsed time 24788 ms
                    2012-11-20 16:42:51,413 [pool-1-thread-10] INFO DBforBIX - Done with dbJob on database GEN8server elapsed time 4 ms
                    2012-11-20 16:42:58,440 [pool-1-thread-10] INFO DBforBIX - Done with dbJob on database appsvr1 elapsed time 7027 ms
                    2012-11-20 16:43:15,636 [pool-1-thread-32] INFO DBforBIX - Done with dbJob on database dlsvr1 elapsed time 24227 ms
                    2012-11-20 16:43:15,834 [pool-1-thread-32] INFO DBforBIX - Done with dbJob on database rsmsvr2 elapsed time 198 ms
                    2012-11-20 18:00:01,530 [main] INFO DBforBIX - Starting DBforBIX Version 0.6
                    2012-11-20 18:00:01,556 [main] INFO DBforBIX - DBforBIX started with pid:31413
                    2012-11-20 18:00:01,556 [main] INFO DBforBIX - PidFile -> ./logs/dbforbix.pid
                    2012-11-20 18:00:02,185 [main] INFO DBforBIX - Connected as ZABBIX
                    2012-11-20 18:00:02,186 [main] INFO DBforBIX - --------- on Database -> DTE
                    2012-11-20 18:00:02,376 [main] INFO DBforBIX - Connected as ZABBIX
                    2012-11-20 18:00:02,385 [main] INFO DBforBIX - --------- on Database -> DTE
                    2012-11-20 18:00:05,688 [main] INFO DBforBIX - Connected as ZABBIX
                    2012-11-20 18:00:06,016 [main] INFO DBforBIX - --------- on Database -> DTE
                    2012-11-20 18:00:07,374 [main] INFO DBforBIX - Connected as zabbix
                    2012-11-20 18:00:07,700 [main] INFO DBforBIX - --------- on Database -> postgres
                    2012-11-20 18:00:08,957 [main] INFO DBforBIX - Connected as zabbix
                    2012-11-20 18:00:09,272 [main] INFO DBforBIX - --------- on Database -> postgres
                    2012-11-20 18:00:09,306 [main] INFO DBforBIX - Connected as zabbix

                    I have an alarm on Zabbix that tells me when the logfile does not increase, if you look at the timestamps, you'll see that the alarm came up at 17h20

                    Tue 11/20/2012 5:20 PM Zabbix server - DBforBix log file not increasing
                    The trigger status is : PROBLEM:
                    Comments about the trigger :
                    No data is being received from DBforBix, restart the service on the Zabbix server with /etc/init.d/dbforbix stop /etc/init.d/dbforbix start Monitor the logfile in /opt/dbforbix/logs tail -f dbforbix.log

                    I have a cronjob that restarts DbforBix every 6 hours to get it working after failures
                    * */6 * * * /etc/init.d/dbforbix restart > /tmp/dbforbix.log

                    Where can I look for problems, I've had the logfile in debug mode and there are no errors.... Please help!!!

                    Comment

                    • esawyja
                      Member
                      Zabbix Certified Specialist
                      • Dec 2011
                      • 54

                      #145
                      Anyone out there

                      Please help, I do not know how to fix this anymore, restarting dbforbix in crontab is not the way to go....

                      Comment

                      • daniel.levai
                        Junior Member
                        • Jan 2013
                        • 2

                        #146
                        Zabbix 2.0 supported?

                        Is Zabbix 2.0+ supported?


                        Daniel

                        Comment

                        • dalle
                          Senior Member
                          Zabbix Certified Specialist
                          • Mar 2009
                          • 402

                          #147
                          yes it is supported
                          Andrea Dalle Vacche
                          website:http://www.smartmarmot.com/
                          e-mail:
                          Author of:Mastering Zabbix Book - second edition
                          Zabbix Network Monitoring Essentials

                          Comment

                          • gert
                            Junior Member
                            • Jan 2013
                            • 4

                            #148
                            I'm having trouble getting dbforbix to work.
                            I have Zabbix 2.0.4 installed on Ubuntu 10.04, with a postgreSQL 8.4 database.
                            I installed dbforbix 0.6 on the same host, and configured it to monitor the zabbix database:

                            zabbix.Url=jdbcostgresql://localhost:5432/zabbix
                            zabbix.User=*****
                            zabbix.Password=*****
                            zabbix.DatabaseType=pgsql
                            zabbix.QueryListFile=./conf/pgsqlquery.props

                            I created a host with the name 'zabbix', and applied the postgreSQL template to it.

                            But when I start dbforbix, no data is received by Zabbix. Log file shows UNSUPPORTED error, with lots of strange characters. Locale of host and database is en_US.UTF8.

                            Any idea what's going on?

                            013-01-25 18:52:08,560 [main] INFO DBforBIX - Starting DBforBIX Version 0.6
                            2013-01-25 18:52:08,578 [main] INFO DBforBIX - DBforBIX started with pid:16784
                            2013-01-25 18:52:08,578 [main] INFO DBforBIX - PidFile -> /opt/dbforbix/logs/dbforbix.pid
                            2013-01-25 18:52:08,579 [main] DEBUG DBforBIX - getConnection for database zabbix
                            2013-01-25 18:52:08,614 [main] DEBUG DBforBIX - Trying to connect to database...
                            2013-01-25 18:52:08,634 [main] DEBUG DBforBIX - Connection attempt to database succeeded.
                            2013-01-25 18:52:08,952 [main] INFO DBforBIX - Connected as monitor
                            2013-01-25 18:52:08,952 [main] INFO DBforBIX - --------- on Database -> zabbix
                            2013-01-25 18:52:08,959 [main] DEBUG DBforBIX - Loaded the properties from ./conf/pgsqlquery.props
                            2013-01-25 18:52:08,960 [main] DEBUG DBforBIX - Note: activeconn.NoDataFound null or not present null
                            2013-01-25 18:52:08,960 [main] DEBUG DBforBIX - Note: activeconn.WhenNotAlive null or not present null
                            2013-01-25 18:52:08,960 [main] DEBUG DBforBIX - Note: activeconn.RaceConditionQuery null or not present null
                            2013-01-25 18:52:08,960 [main] DEBUG DBforBIX - Note: activeconn.RaceConditionValue null or not present null
                            2013-01-25 18:52:08,960 [main] DEBUG DBforBIX - Note: activeconn.Period null or not present null
                            2013-01-25 18:52:08,960 [main] DEBUG DBforBIX - Note: DefaultQueryPeriod null or not present using default values 2 min.
                            2013-01-25 18:52:08,960 [main] DEBUG DBforBIX - Note: activeconn.ExcludeColumnsList error null
                            2013-01-25 18:52:08,961 [main] DEBUG DBforBIX - Note: activeconn.RaceConditionQueryExcludeColumnsList error null
                            2013-01-25 18:52:08,962 [main] DEBUG DBforBIX - Note: tupfetched.NoDataFound null or not present null
                            2013-01-25 18:52:08,992 [main] DEBUG DBforBIX - Ready to run DBJob for dbname ->zabbix
                            2013-01-25 18:52:08,993 [pool-1-thread-1] DEBUG DBforBIX - Starting dbJob on database zabbix
                            2013-01-25 18:52:08,999 [pool-1-thread-1] DEBUG DBforBIX - Actual query is activeconnNextrun 2013/01/25 18:54:08 on database=zabbix Period=2
                            2013-01-25 18:52:09,000 [pool-1-thread-1] DEBUG DBforBIX - I'm going to return 30 for query activeconn on database=zabbix
                            2013-01-25 18:52:09,001 [pool-1-thread-1] DEBUG DBforBIX - Actual query is tupfetchedNextrun 2013/01/25 18:54:08 on database=zabbix Period=2
                            2013-01-25 18:52:09,013 [pool-1-thread-1] DEBUG DBforBIX - I'm going to return 46344210 for query tupfetched on database=zabbix
                            2013-01-25 18:52:09,029 [pool-1-thread-1] DEBUG DBforBIX - Poolinfo zabbix:
                            2013-01-25 18:52:09,029 [pool-1-thread-1] DEBUG DBforBIX - NumActive: 1
                            2013-01-25 18:52:09,029 [pool-1-thread-1] DEBUG DBforBIX - NumIdle: 1
                            2013-01-25 18:52:09,029 [pool-1-thread-1] DEBUG DBforBIX - Item retrieved 21 on database zabbix
                            2013-01-25 18:52:09,029 [pool-1-thread-1] DEBUG DBforBIX - dbname zabbix sending item DBforBIX.PostgreSQL.activeconn value 30
                            2013-01-25 18:52:09,029 [pool-1-thread-1] DEBUG DBforBIX - dbname zabbix sending item DBforBIX.PostgreSQL.tupfetched value 46344210
                            2013-01-25 18:52:09,037 [pool-1-thread-1] WARN DBforBIX - received unexpected response 'ZBXD^A^P^@^@^@^@^@^@^@ZBX_NOTSUPPORTED^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^ @^@^@^@^@^@^@^@^@^@^@^@^@^@^@' for key 'DBforBIX.PostgreSQL.alive'

                            Comment

                            • gert
                              Junior Member
                              • Jan 2013
                              • 4

                              #149
                              stupid me
                              I filled in the port of the zabbix agent instead of the zabbix server in the config.props file.
                              Works nice now for postgreSQL. Next thing on my list: get it to monitor our DB2 databases...

                              Comment

                              • jnsvano
                                Senior Member
                                • Feb 2013
                                • 143

                                #150
                                Hello. I could not download DBforBIX (as well as PostBIX by the way).
                                Links:


                                just lead to main page...

                                Comment

                                Working...