Ad Widget

Collapse

Zabbix Web Interface Action List Error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sasanaalem
    Junior Member
    • Sep 2023
    • 28

    #1

    Zabbix Web Interface Action List Error

    Problem with Actions List Page - PHP Errors in actions.inc.php

    Environment:
    • Zabbix version: 7.0.5
    • Installation type: Docker container (zabbix/zabbix-web-nginx-mysql:ubuntu-7.0.5)
    • Database: MySQL
    • OS: Ubuntu (Docker)

    Description:
    When trying to access the Actions list page (Configuration → Actions), I'm getting PHP errors related to undefined array keys. The error occurs consistently when trying to view the trigger actions page.

    Error messages:
    Code:
    [17-Nov-2024 13:38:45 Asia/Tehran] PHP Warning:  Undefined array key "conditiontype" in /usr/share/zabbix/include/actions.inc.php on line 119
    [17-Nov-2024 13:38:45 Asia/Tehran] PHP Warning:  Undefined array key "value" in /usr/share/zabbix/include/actions.inc.php on line 121
    [17-Nov-2024 13:38:45 Asia/Tehran] PHP Fatal error:  Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, false given in /usr/share/zabbix/include/actions.inc.php:277
    Docker Configuration:
    Code:
    version: "3.9"
    services:
      zabbix-web:
        image: 'zabbix/zabbix-web-nginx-mysql:ubuntu-7.0.5'
        volumes:
          - /etc/localtime:/etc/localtime:ro
          - ./web/ssl:/etc/ssl/nginx:ro
          - ./web/modules/:/usr/share/zabbix/modules/:ro
        environment:
          - DB_SERVER_HOST=172.31.0.154
          - DB_SERVER_PORT=3306
          - ZBX_SERVER_NAME=zabbix-web-1
        env_file:
          - ./envs/.env_web
        ports:
          - "8080:8080"
        container_name: zabbix-web-1
        hostname: zbxWeb-1
        restart: unless-stopped
        networks:
          - nginx-network
        logging:
          driver: "json-file"
          options:
            max-size: "100m"
            max-file: "5"
            compress: "true"
            tag: "{{.Name}}"
    networks:
      nginx-network:
        external: true
    Database Status:
    Here's a sample from our actions table:
    Code:
    +----------+-------------------------------------------+-------------+----------+--------+------------+
    | actionid | name                                      | eventsource | evaltype | status | esc_period |
    +----------+-------------------------------------------+-------------+----------+--------+------------+
    |        8 | iLO Problems                              |           0 |        3 |      1 | 60s        |
    |       10 | Network Problems - General                |           0 |        3 |      1 | 60s        |
    |       11 | Subnet monitirng                          |           0 |        0 |      1 | 60s        |
    [...more entries...]
    Steps to Reproduce:
    1. Log into Zabbix web interface
    2. Navigate to Configuration → Actions
    3. Try to view the trigger actions list
    4. Error appears and page fails to load

    What I've Already Tried:
    • Restarted the Zabbix web container
    • Verified database connectivity
    • Checked action configurations in the database

    Additional Information:
    • All existing actions show status=1
    • Can access other parts of the Zabbix interface without issues

    Questions:
    1. Is this a known issue with Zabbix 7.0.5?
    2. Could this be related to a database schema mismatch?
    3. Are there any safe ways to fix this while preserving our existing action configurations?

    Any help or guidance would be greatly appreciated. Let me know if you need any additional information.
    Last edited by sasanaalem; 17-11-2024, 13:15.
Working...