Ad Widget

Collapse

Database monitoring and ODBC permissions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Eithco
    Junior Member
    • Jul 2015
    • 21

    #1

    Database monitoring and ODBC permissions

    I set up a Database monitor Item with the key being db.odbc.select["response_time",eyalora]

    and I'm getting it as Not supported with this error:

    Cannot connect to ODBC DSN:[SQL_ERROR]:[01000][0][[unixODBC][Driver Manager]Can't open lib '/usr/lib' : file not found]|

    My ODBC is working when I sudo it, and I'm wondering if this is a permissions issue?

    What is the user Zabbix is installed under? My own user? (I'm running it on Ubuntu.) But the ownder of /usr/lib is root.

    Am I on the right track? What is the solution?
  • akbar415
    Senior Member
    • May 2015
    • 119

    #2
    Do you have configured this two files?
    odbcinst.ini
    odbc.ini

    Comment

    • Colttt
      Senior Member
      Zabbix Certified Specialist
      • Mar 2009
      • 878

      #3
      do you compile zabbix with odbc-support?
      Debian-User

      Sorry for my bad english

      Comment

      • Eithco
        Junior Member
        • Jul 2015
        • 21

        #4
        Colttt -- I did not. I installed unixODBC separately.

        akbar415 -- I did configure them. However, there was a mixture between two locations:

        Zabbix was looking for odbc.ini and odbcinst.ini in /etc/ while isql was looking for it in /usr/local/etc.

        I was modifying the copies in /usr/local/etc and once I realized that zabbix only sees it in /etc/ it started working.

        The best solution is probably to link these two copies so that you only have to modify one location.

        Comment

        • Colttt
          Senior Member
          Zabbix Certified Specialist
          • Mar 2009
          • 878

          #5
          Colttt -- I did not. I installed unixODBC separately.
          thats the problem you must compile zabbix with odbc-support otherwise it dont work..

          Debian-User

          Sorry for my bad english

          Comment

          • mark.chan
            Member
            • Mar 2016
            • 35

            #6
            i install the zabbix with the package


            and when i look at the server log, it state the ODBC is ON

            but i got the same problem on the frontend:
            Cannot connect to ODBC DSN:[SQL_ERROR]:[01000][0][[unixODBC][Driver Manager]Can't open lib '/usr/lib/oracle/12.1/client64/lib/libsqora.so.12.1' : file not found]|

            i can link to the database with isql

            any suggestion?

            Comment

            • GPegel
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Dec 2015
              • 113

              #7
              I also had that error about not finding the file. I solved it by adding the LD_LIBRARY_PATH to the environment variables.

              Comment

              Working...