Ad Widget

Collapse

Oracle DB connection problems by LDAP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iam33
    Junior Member
    • Jul 2009
    • 24

    #1

    Oracle DB connection problems by LDAP

    Thank you very much in advance.

    I am installing zabbix 1.8.8 with Oracle 10G BD either via instanclient 10.2.0.4.

    The connection type is LDAP (by ldap.ora), not TNSNAMES.

    Testing the connection with the SQLPLUS I connect to the database without problems, but when trying to start the Zabbix server, this does not connect and gives me the following error:
    Code:
     11604:20111205:092430.270 IPMI monitoring: YES
      11604:20111205:092430.270 WEB monitoring: YES
      11604:20111205:092430.270 Jabber notifications: YES
      Ez Texting 11604:20111205:092430.270 notifications: YES
      11604:20111205:092430.270 ODBC: NO
      11604:20111205:092430.270 SSH2 support: NO
      11604:20111205:092430.270 IPv6 support: NO
      ****************************** 11604:20111205:092430.270
      In DBconnect 11604:20111205:092430.270 () flag: 1
      Can not connect to the 11604:20111205:092430.270 database. Exiting ...
    The configuration options I have are:
    Code:
    LogFile = / logs / zabbix / zabbix_server.log
     LogFileSize = 10
     DebugLevel = 4
     PidFile = / software / zabbix / tmp / zabbix_server.pid
     DBName = exzb02
     DbUser = zabbix
     DbPassword = PASS
    I know in previous versions of Zabbix the connection to the database could be performed by LDAP, so I understand that this should also be possible, right?

    Anybody would think that's what happens ....?

    Thank you very much.
  • iam33
    Junior Member
    • Jul 2009
    • 24

    #2
    Solved

    The problem to connect with LDAP resides in the next files:
    Zabbix_Server -> src/libs/zbxdb/db.c
    Zabbix FrontEnd -> php/include/db.inc.php
    In these files, in the database connection definition, the code forces to use all parameters:
    server_db_name
    server_db_port
    db_name
    while If you uses LDAP you only need db_name.

    I have modified these scripts and compiled them and it works without problem.

    Now, I would like to provide these changes to the zabbix developers, to include it in next versions.

    HOW CAN I DO IT?


    thanks!!

    Comment

    • iam33
      Junior Member
      • Jul 2009
      • 24

      #3
      The problem still persists in version 2.0.
      Any website manager could tell me how and to whom to pass the code that solves?

      Thanks!

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        you should file a feature request here : https://support.zabbix.com/browse/ZBXNEXT
        make sure to describe everything in the issue and attach a patch, if available (do not simply link to forum)
        Zabbix 3.0 Network Monitoring book

        Comment

        • iam33
          Junior Member
          • Jul 2009
          • 24

          #5
          Thank you so much for your answer!

          Comment

          Working...