Ad Widget

Collapse

Dynamic adding/deleting Items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Crypty
    Member
    • Jul 2012
    • 80

    #1

    Dynamic adding/deleting Items

    Hi,

    I have an equipment which can have several neighbours (other units). This number can vary.

    For each neighbour I have about 20 OIDs configured / temperature etc.

    I can manually add these OIDs for each equipment added. I can manually delete these OIDs for each equipment removed. But that's so time consuming...

    I have an OID which tells me how many neighbours the equipment has. I could use a trigger which tells me about any change of the total count of these neighbours.

    Can I somehow configure that in case that any equipment is removed from the network, these 20 OIDs are removed? And if any equipment is added, these 20 OIDs are also added again?

    Thanks.
  • bcarpio
    Member
    • Jun 2008
    • 96

    #2
    I would like the same

    I would like the same ability.

    Currently we are deploying to EC2. When we roll a new version of our software we roll out new instances for that version and dynamically update our LBs. After a certain period of time we remove the old instances. I have scripts the removal from puppet, openldap, and EC2 (I didn't want to add removing from Zabbix).

    Is there a way that once a system is "down" for a certain period lets say 48 hours its removed from the inventory?

    Comment

    • eskytthe
      Senior Member
      Zabbix Certified Specialist
      • May 2011
      • 363

      #3
      I think you can control adding/deleting of Items or servers from zabcon (cli interface to zabbix) or from the zabbix API (There is libraries for perl/python/php etc.). Do some search after API or zabcon in the forum, that should provide you with examples etc.

      Zabbix discovery functionality, may also help you. Can exec scripts when found servers and when servers not respond in a defined time period.

      Or maybe actions (connected to triggers).
      Hope this help.
      Br
      Erik

      Comment

      Working...