Ad Widget

Collapse

Auto remove auto registered hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • onallion
    Senior Member
    • Mar 2016
    • 131

    #1

    Auto remove auto registered hosts

    Hey guys,
    My use case is this:

    I'm monitoring VMWare VDI servers, which often turn themselves on and off depending on requirement. They all have Zabbix Agent installed, and they auto-register to the Zabbix Server. So far so good, but I'm looking for a way to automatically delete these servers from Zabbix one they're shut down.

    Perhaps I can create some sort of trigger, like when Zabbix Agent is not communicating for more than 5 minutes, invoke an API call to remove it? If that's doable, any tips on how to do this would be great.

    Thanks!
  • ovas
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Apr 2017
    • 138

    #2
    Hello onallion!

    Unfortunately, there is no automatic way of host auto-deregistration out of the box.
    There are options to do this via network discovery, however. Discovered hosts not meeting certain criteria can be removed via associated actions.
    There is another way - item/trigger/graph/host added by low level discovery that are not available during certain time are removed within the set parameter of "Keep lost resources period (in days)".

    Most probably your option of achieving host removal via API call is possible, but unfortunately I'm not that skilled with API to help you out, sorry.

    Comment

    Working...