Ad Widget

Collapse

DBforBIX

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marc55
    Junior Member
    • Sep 2014
    • 18

    #196
    DBforBis windows service

    Hi, is anybordy succeeded to start dbforbix as windows service?
    I tried with 2.2 beta , when starting the service I have following error
    FindClass net/qdevzone/dbforbix/DBforBIX failed
    So I tried to replace with com.smartmarmot.dbforbix.DBforBIX using dbforbixw.exe but still have same kind of issue.
    FindClass com/smartmarmot/dbforbix/DBforBIX failed
    Any idea?
    Regards,
    Marc

    Comment

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

      #197
      Originally posted by marc55
      Hi, is anybordy succeeded to start dbforbix as windows service?
      I tried with 2.2 beta , when starting the service I have following error
      FindClass net/qdevzone/dbforbix/DBforBIX failed
      So I tried to replace with com.smartmarmot.dbforbix.DBforBIX using dbforbixw.exe but still have same kind of issue.
      FindClass com/smartmarmot/dbforbix/DBforBIX failed
      Any idea?
      Regards,
      Marc
      sorry but replaced where?
      Andrea Dalle Vacche
      website:http://www.smartmarmot.com/
      e-mail:
      Author of:Mastering Zabbix Book - second edition
      Zabbix Network Monitoring Essentials

      Comment

      • marc55
        Junior Member
        • Sep 2014
        • 18

        #198
        I just tried to replace in the Class filed (in startup) cause there was a problem with net.qdevzone.dbforbix.DBforBIX (value set by default).
        But it didn't fix anything.
        If I don't change anything and use default value, the service always fail to start with error I just described in my previous post.

        Moreover, using 2.0 I'm able to run the script using command line and works perfectly but with 2-2, with the same command line (java -jar dbforbix.jar -d -a start -C C:\dbforbix\) , I always have this error:
        Of course I added the ojdbc6.jar in lib.
        INFO - Creating new pool for database NODE_XE
        ERROR - oracle.jdbc.OracleDriver
        java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.apache.commons.dbcp2.cpdsadapter.DriverAdapter CPDS.setDriver(DriverAdapterCPDS.java:502)
        at com.smartmarmot.dbforbix.db.adapter.AbstractAdapte r.getConnection(AbstractAdapter.java:51)
        at com.smartmarmot.dbforbix.db.adapter.Oracle.getConn ection(Oracle.java:23)
        at com.smartmarmot.dbforbix.scheduler.Scheduler.run(S cheduler.java:92)
        at java.util.TimerThread.mainLoop(Unknown Source)
        at java.util.TimerThread.run(Unknown Source)

        Comment

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

          #199
          Originally posted by marc55
          I just tried to replace in the Class filed (in startup) cause there was a problem with net.qdevzone.dbforbix.DBforBIX (value set by default).
          But it didn't fix anything.
          If I don't change anything and use default value, the service always fail to start with error I just described in my previous post.

          Moreover, using 2.0 I'm able to run the script using command line and works perfectly but with 2-2, with the same command line (java -jar dbforbix.jar -d -a start -C C:\dbforbix\) , I always have this error:
          Of course I added the ojdbc6.jar in lib.
          INFO - Creating new pool for database NODE_XE
          ERROR - oracle.jdbc.OracleDriver
          java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Unknown Source)
          at org.apache.commons.dbcp2.cpdsadapter.DriverAdapter CPDS.setDriver(DriverAdapterCPDS.java:502)
          at com.smartmarmot.dbforbix.db.adapter.AbstractAdapte r.getConnection(AbstractAdapter.java:51)
          at com.smartmarmot.dbforbix.db.adapter.Oracle.getConn ection(Oracle.java:23)
          at com.smartmarmot.dbforbix.scheduler.Scheduler.run(S cheduler.java:92)
          at java.util.TimerThread.mainLoop(Unknown Source)
          at java.util.TimerThread.run(Unknown Source)
          I see the issue is with the windows version, I've updated the right version, but please be aware that I use the linux one... and the window is not deeply tested.
          Andrea Dalle Vacche
          website:http://www.smartmarmot.com/
          e-mail:
          Author of:Mastering Zabbix Book - second edition
          Zabbix Network Monitoring Essentials

          Comment

          • marc55
            Junior Member
            • Sep 2014
            • 18

            #200
            thank's , works fine now.
            Moreover, if I can propose you an extra option regarding encryption.
            Now zabbix supports encryption, either Dbforbix could integrate it or may be add an option to use native zabbix agent (in this case the zabbix trapper) instead of using the java zabbix trapper that you implemented.
            However, thank's a lot for your great work.
            Regards,
            Marc

            Comment

            • Jebrail
              Junior Member
              Zabbix Certified Specialist
              • May 2010
              • 3

              #201
              upgrade dbforbix 0.6 to 2.x

              Is there way to upgrade dbforbix 0.6 to 2.x ?

              Comment

              • vjunior1981
                Junior Member
                • Nov 2009
                • 10

                #202
                DBforBix + AWS RDS MySQL

                Hello from Bazil, everyone.

                Someone is running a Zabbix server, and DBforBIX to monitor AWS RDS MySQL instances?
                Can you share a how-to implement?
                Best regards to you all,

                Vitor Jr.

                Comment

                • mammoccio
                  Junior Member
                  • Sep 2017
                  • 1

                  #203
                  DB2 example configuration

                  Hi there, im trying to configure stuff for db2, but with no luck.
                  Is possible to have some sample of conf that work with this db? Is really annoying that something that i can do in 5 minutes with nagios is quite difficult (for me at list...) with zabbix!
                  Tnx in advance

                  Vito

                  Comment

                  • leortiz
                    Junior Member
                    • Dec 2017
                    • 4

                    #204
                    Hello.
                    What is the difference with native zabbix obdc monitoring?

                    Comment

                    • Gandzy
                      Junior Member
                      • Jun 2018
                      • 2

                      #205
                      Hi friends!

                      Does anyone still use DBforBIX?

                      dbforbix loose connection with some DB's every 10-15 minutes. In log we get an errors like this:

                      [2018-07-20 07:05:55] [ERROR] [127.0.0.1:10051/zbxca-szb2/orcl_5500_mass03/sp_5500_mass_03_orcl/oracle.discovery.DBforBIX.config[instanceid,{$DSN}][run(Scheduler.java:125)]]: Could not get connection to db: sp_5500_mass_03_orcl
                      java.sql.SQLException: Must set the ConnectionPoolDataSource through setDataSourceName or setConnectionPoolDataSource before calling getConnection.
                      at org.apache.commons.dbcp2.datasources.InstanceKeyDa taSource.getConnection(InstanceKeyDataSource.java: 878)
                      at org.apache.commons.dbcp2.datasources.InstanceKeyDa taSource.getConnection(InstanceKeyDataSource.java: 859)
                      at com.smartmarmot.dbforbix.db.adapter.AbstractAdapte r.getConnection(AbstractAdapter.java:91)
                      at com.smartmarmot.dbforbix.db.adapter.Oracle.getConn ection(Oracle.java:1)
                      at com.smartmarmot.dbforbix.scheduler.Scheduler.run(S cheduler.java:94)
                      at java.util.TimerThread.mainLoop(Timer.java:555)
                      at java.util.TimerThread.run(Timer.java:505)
                      Last edited by Gandzy; 23-07-2018, 06:15.

                      Comment

                      • vgrajdeanu
                        Junior Member
                        • Jul 2018
                        • 1

                        #206
                        Hi,
                        Who started dbforbix as windows service with success?
                        when starting the service I have following error

                        FindClass com/smartmarmot/dbforbix/DBforBix failed
                        Failed to start Java
                        ServiceStart returned 4

                        Best regards to you all,
                        Vadim
                        Last edited by vgrajdeanu; 24-07-2018, 17:09.

                        Comment

                        • damiancancela
                          Junior Member
                          • May 2020
                          • 14

                          #207
                          Hi team,

                          i'm using dbforbix 0.6 with Zabbix 4.4 and it's not working, we can not see any info in zabbix gui items, same configuration works just fine with zabbix v3.4. I found online that some people are saying that dbforbix wont work with zabbix v4 and higher, there is some official documentation about it?

                          Thanks!

                          Comment


                          • zaicnupagadi
                            zaicnupagadi commented
                            Editing a comment
                            As far as I am concerned dbforbix was developed by Andrea Della Vacche - who no longer does it.
                        Working...