Ad Widget

Collapse

Failed to connect to DB2 through zabbix web gui

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iskioupi
    Junior Member
    • Mar 2023
    • 4

    #1

    Failed to connect to DB2 through zabbix web gui

    Hello all,

    we would like your help on the following issue.

    Our main goal is to monitoring Db2 databases through zabbix. The zabbix is installled on RedHat8.

    We have already perform the following steps.

    1) Install unixodbc
    2) Install IBM Data Server Client
    3) Catalog the database
    4) Configure odbc.ini, odbcinst.ini

    We can connect through Db2 database from:

    db2 cli
    isql (for all users).

    Nevertheless, we have not managed to connect without give the password.

    After our successfully connection, we have try the following steps on zabbix gui.

    1) Create a new template
    2) Create a new item.

    Click image for larger version

Name:	dataurl528886.png
Views:	524
Size:	35.4 KB
ID:	460755

    When we test the Item we are receiving the following error.
    Click image for larger version

Name:	dataurl585576.png
Views:	457
Size:	28.1 KB
ID:	460757

    Can you help us/guide us please?

    Thank you in advance,
    Katerina Iskioupi​
    Attached Files
  • rodolfo.rojas
    Junior Member
    • Jun 2022
    • 1

    #2
    Hello,

    I think you have to edit the configuration file for db2 cli, search the file db2dsdriver.cfg and set the follow parameters: dns alias, name (DB), host and port.
    Other solution could be check if user zabbix have privileges to read configuration files.​

    Comment

    Working...