Ad Widget

Collapse

Zabbix trigger on trapper item - Delay

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xHybrid
    Junior Member
    • Aug 2021
    • 4

    #1

    Zabbix trigger on trapper item - Delay

    Good day,
    I need advice.

    I have one Zabbix Trapper Item to which I send certain data. In case of problems from my application, I create a Zabbix trigger with the expression ".str" (example: {xx:KubeSchedulerDown.str(8eeaeb2793b61dde, # 1)} = 1). - I'm looking for the string "8eeaeb2793b61dde" on ZabbixItem, which will light up the trigger if it appears.

    After creating a ZabbixTrigger, I send the given value to the item (always after!), But the trigger does not light up. However, if I send the given value at a distance (approx. 10 seconds), the trigger will light up.

    Can anyone tell me why this is happening? Or how can I solve the problem so I can send the value now? Thank you.
  • xHybrid
    Junior Member
    • Aug 2021
    • 4

    #2
    Any ideas?

    Comment

    • dimir
      Zabbix developer
      • Apr 2011
      • 1080

      #3
      Basically, there are 2 instances involved here:

      - Zabbix frontend
      - Zabbix server

      Zabbix frontend works directly with the database so when you e. g. create an item, you would see it instantly.

      Zabbix server works (mostly) with the cache, that is a "copy" of the data in the database. So when you modify something in the database, Zabbix server would need to "reload" it's configuration cache in order to get the updates.

      In your case probably, when you send the value and it's lost, Zabbix server hasn't yet reloaded the configuration from the database and doesn't "know" yet about the newly created item. If you want Zabbix server to "reload" the configuration cache after your created an item in the frontend, you can do that:

      Code:
      # zabbix_server -Rconfig_cache_reload
      zabbix_server [91334]: command sent successfully
      In case the command was successfully delivered to zabbix server it will reply with something like above.

      The following values you send should not be discarded.

      Comment

      Working...