Ad Widget

Collapse

Deleted servers come back after one day

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • george.hagi
    Junior Member
    • Aug 2016
    • 12

    #1

    Deleted servers come back after one day

    Hi,

    have problem with deleted servers - after one day servers come back.

    To discovery is used ping and snmp v2 in 1day interval.

    Server appears again with IP of iLO and all groups, which he has before delete. Servers iLO is physically disconected from network, ping dont answer.

    Zabbix 6.0.17

    Any ideas why?

    Thanks
    george
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    If the host was created as a result of "network discovery", then deleting the "hos"t does not delete the "fact" of its discovery and the information in the database tables related to the discovery.
    Either exclude the host address from the network detection range or clear the information in the database.

    Comment

    • george.hagi
      Junior Member
      • Aug 2016
      • 12

      #3
      Hi,

      can you show me example? No idea which table edit.

      Thanks george

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4

        Comment

        • george.hagi
          Junior Member
          • Aug 2016
          • 12

          #5
          Hi,

          finally it works!

          Click image for larger version  Name:	image.png Views:	0 Size:	3.3 KB ID:	467821

          No idea what mean, if it is important:
          delete from dhosts where dhostid not in (select distinct dhostid from dservices);​​

          After sql query just delete the host via web and he dont appears again.

          Thanks
          george

          Comment

          • george.hagi
            Junior Member
            • Aug 2016
            • 12

            #6
            Hi,

            so, this dont help, old sevrers after few days come back.

            Can you explain in any example this command?
            delete from dhosts where dhostid not in (select distinct dhostid from dservices);​​

            Thanks
            george

            Comment

            • Hamardaban
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • May 2019
              • 2713

              #7
              There are 2 big parts of network discovery: hosts and services.
              The first part of sql deletes services and the second (which you are asking about) hosts for which there are no more services.

              dhosts - discovered hosts
              dservices - discovered services

              Comment

              Working...