Ad Widget

Collapse

LLD host discovery - overwrite existing host information

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mako
    Junior Member
    • Feb 2022
    • 3

    #1

    LLD host discovery - overwrite existing host information

    Zabbix 7.0.9

    I have a discovery rule, that scans an OLT (PON) via snmp (walk[OID]) and for every "child" device found (ONT/CPE) create a new host via "Host prototype" with an inherited snmp interface of the OLT.
    Every new host has his own uniqe serialnumber (like a MAC-Adress) as hostname. That works fine.

    I set the discovery rule, to not delete or disable generated hosts. I do not want to lose any historical data from the ONT / CPE (Host prototype).

    Sometimes a device can move from on OLT to another OLT.

    Now, the new OLT with the same discovery rule sees the devices in his ont table and would like to create a new host (prototype).
    Cannot create host: host with the same name "xxxxhostnamexxx" already exists.
    Thats true. But I like to force overwrite/update the existing ont/cpe/device withe the new interface datas instead of creating a new one.

    I know, I could write a script, tha uses the API to do what I do now with the discovery rules, but first I like to ask, if somebody has an idea how to overwrite an existing host instead of creating a new one
Working...