Ad Widget

Collapse

Dynamic item value tracking between hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • boshoffjb
    Junior Member
    • Jul 2023
    • 3

    #1

    Dynamic item value tracking between hosts

    Currently the only way to get one value into host A from host B is with a calculated item type in B that says last(/HOST-A/status). This is not dynamic enough when it gets to host prototype discovery since you wont know what the name will be of host A beforehand. A work around would be to allow user macros in Formulas that say last(/{$HOST}/status) or to allow nested calculations last(/last(//conf.hypervisor)/status). This is how ever not supported it seems, is there any way to achieve this today in Zabbix 6.2.3 ?
  • Bendind
    Junior Member
    • Aug 2023
    • 3

    #2
    Originally posted by boshoffjb
    Currently the only way to get one value into host A from host B is with a calculated item type in B that says last(/HOST-A/status). This is not dynamic enough when it gets to host prototype discovery since you wont know what the name will be of host A beforehand. A work around would be to allow user macros in Formulas that say last(/{$HOST}/status) or to allow nested calculations last(/last(//conf.hypervisor)/status). This is how ever not supported it seems, is there any way to achieve this today in Zabbix 6.2.3 ?BallSportsPro
    Unfortunately, in Zabbix 6.2.3, there is no direct way to achieve dynamic item value tracking between hosts using user macros or nested calculations as you mentioned. The current approach of using a calculated item type with a specific host name is the only available method.

    Comment

    • Demiwinter
      Junior Member
      • Aug 2023
      • 3

      #3
      Originally posted by boshoffjb
      Currently the only way to get one value into host A from host B is with a calculated item type in B that says last(/HOST-A/status). This is not dynamic enough when it gets to host prototype discovery since you wont know what the name will be of host A beforehand. A work around would be to allow user macros in Formulas that say last(/{$HOST}/status) or to allow nested calculations last(/last(//conf.hypervisor)/status). This is how ever not supported it seems, is there any way to achieve this today in Zabbix 6.2.3 ?
      Zabbix 6.2.3 doesn't support direct dynamic referencing of host names or nested calculations within calculated item formulas. Workarounds might involve scripting or using external tools to update item values indirectly.

      Comment

      Working...