Ad Widget

Collapse

Discovery and host name update

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • doum
    Member
    • Oct 2019
    • 35

    #1

    Discovery and host name update

    Hi,

    I have a discovery rule to discover all our network equipment
    it's working well.

    device uniqueness criteria is set to IP
    host name is set to SNMPv2 agent "SNMPv2-MIB::sysName.0"

    but recently we had to rename a part of our network switches. And zabbix doesn't update the host

    host name is still the old name, but in inventory Name (device name) is updated.

    is there a way to update host name for monitoring ?
  • tikkami
    Member
    • May 2018
    • 71

    #2
    That can be done by using API.
    Write script which gets current hostname and inventory name. If names differ, update hostname.

    Comment

    • doum
      Member
      • Oct 2019
      • 35

      #3
      Originally posted by tikkami
      That can be done by using API.
      Write script which gets current hostname and inventory name. If names differ, update hostname.
      I will try this thanks

      Comment

      • andreamanca
        Junior Member
        • Aug 2024
        • 2

        #4
        Hello Everyone,
        I have a problem with discovered hosts, I changed the discovery rule after the discoveries had already entered the hosts. Now changing the rule setting for visible name doesn't change my value in the hosts list. Is there any way to update the name from discovery? I can't run scripts from all the hosts I need to monitor because some are switches.

        Comment

        Working...