Ad Widget

Collapse

Remove Down Device from Discovery

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Linuxjohnny
    Junior Member
    • Nov 2018
    • 14

    #1

    Remove Down Device from Discovery

    Hi

    Maybe a simple question but for now i didn't find a way to do this

    I'm monitoring all Swtich and Accesspoints Management Networks via Disovery Rules and add new hosts automaticly.
    I also have a rule for remove hosts if they are down for a specific time.
    But the Hosts will still appear in the Tab Monitoring -> Disovery "Status of discovery"

    Here are some Screenshots:

    Dashboard:

    Discovery Tab:

    Remove Action:


    If you need more information please ask
    So this is my first post and i hope i didn't forget something...

    Many thanks for your replys!

    Regards
    Kevin
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello and welcome to Zabbix forums!

    I think it is the designed behavior. The host is still listed in "dhosts" and "dservices" tables in Zabbix database even after it is not discovered anymore. Otherwise how would you be able to execute that action on "Downtime".

    I get your point, you want the host to be removed from the list once it is not discovered anymore and removed from configuration, correct? In that case it could be a new feature request.

    Comment

    • Linuxjohnny
      Junior Member
      • Nov 2018
      • 14

      #3
      Hi

      Thanks for your reply!

      Ok yes that can be a case. I think then there should be an option in the discovery actions to clear this tables...
      Or something like the "Keep lost ressources period" option in the Disovery Rules...

      And yes you're right, i just want to remove it

      Regards
      Kevin

      Comment

      • Linuxjohnny
        Junior Member
        • Nov 2018
        • 14

        #4
        For now i just deleted the entries in dhosts and dservices:

        DELETE FROM dhosts WHERE dhostid = 326;
        DELETE FROM dservices WHERE dserviceid = 326;

        Is that enough?

        But if you know a better way to do this just let me know

        Comment

        • ingus.vilnis
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Mar 2014
          • 908

          #5
          I think it is good enough for now.

          Comment

          • Linuxjohnny
            Junior Member
            • Nov 2018
            • 14

            #6
            Cool! Thanks for your help!
            ingus.vilnis Do you think its worth to create a feature request?

            Comment

            • ingus.vilnis
              Senior Member
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Mar 2014
              • 908

              #7
              Hi,

              Yes, why not. But since the existing functionality might be used by others already, I think you can request for something like a checkbox to remove hosts from the Monitoring -> Discovery list after they are not discovered for more than x time.

              Comment

              Working...