Ad Widget

Collapse

Network Discovery -- long dead hosts come back

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cerasus
    Junior Member
    • Mar 2020
    • 24

    #1

    Network Discovery -- long dead hosts come back

    Hello, I've a question about network discovery (https://www.zabbix.com/documentation...discovery/rule) that I've been struggling with.

    I created a rule based on SNMP that scans a subnet. There are two discovered hosts named like so: X and X_2. X_2 has a dead IP and I deleted it. It's mentioned on the Monitoring -> Discovery page, which is fine. However, the host reappears a day or so later.

    I've heard that I can delete the hosts from the dservices/dhosts tables, but ideally I'd like to avoid manipulating that table. Why are these hosts getting resurrected despite being truly dead?

    Would something like this be ok to run (i might be off on the exact syntax):

    Code:
    DELETE
    FROM dservices AS services
    JOIN dhosts AS hosts
    ON services.dhostid=hosts.dhostid
    WHERE service.ip = '<SOME_IP>'
    Any issues if proxies are involved?

    Thanks for any insight.

    P.S.: I think what also works is changing the network range temporarily for the dead IPs to fall out of the range, which then deletes them according to the docs (https://www.zabbix.com/documentation...%20immediately.)
    Last edited by cerasus; 02-09-2021, 23:12.
Working...