Ad Widget

Collapse

How to sync interface errors from proxies to server?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lcrash
    Junior Member
    • Oct 2018
    • 3

    #1

    How to sync interface errors from proxies to server?

    Hello,

    I've a quiet huge setup with over 1000 hosts which are Windows client machines. I'm using Zabbix 5.4.

    I automatically configure them to connect via TLS once they are auto-registered. Sometimes for various reasons the configuration fails or those hosts aren't physically available any longer, so I'm currently trying to remove clients which aren't available for some weeks. My approach is to check how long the main interface of a host is offline.

    On the (active) proxy when I look into the database I can see the following:

    Code:
    mysql> select errors_from,disable_until from interface where hostid=12702;
    +-------------+---------------+
    | errors_from | disable_until |
    +-------------+---------------+
    | 1629282147  | 1631101388    |
    | 1629285274  | 1631101393    |
    +-------------+---------------+
    2 rows in set (0.00 sec)
    But on the server the values for errors_from and disabled_until aren't synchronized:

    Code:
    mysql> select errors_from,disable_until from interface where hostid=12702;
    +-------------+---------------+
    | errors_from | disable_until |
    +-------------+---------------+
    | 0           | 0             |
    | 0           | 0             |
    +-------------+---------------+
    2 rows in set (0.00 sec)
    Is there any way to make the proxies sync those values as well? Is this a bug or was intentionally?

    Thank you.
  • lcrash
    Junior Member
    • Oct 2018
    • 3

    #2
    Ok I think I've just found the answer by myself when looking at the source code:

    https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/src/libs/zbxdbhigh/proxy.c?until=7f8013c6770362463c14966f6ae419806aea 1bb5&untilPath=src%2Flibs%2Fzbxdbhigh%2Fproxy.c#21 32-2143

    It seems like when the proxy create the JSON for synchronization these values simply aren't attached. I'm gonna file an issue.

    Edit: https://support.zabbix.com/browse/ZBX-19929
    Last edited by lcrash; 08-09-2021, 14:18.

    Comment

    Working...