Ad Widget

Collapse

Auto-remove of monitored servers after specific time?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • agentguerry
    Member
    • Jul 2009
    • 45

    #1

    Auto-remove of monitored servers after specific time?

    Is there a feature in Zabbix that will auto-remove a server that is listed if it has not been able to connect after a certain time span?

    I am hoping there is that way if a server was de-commisioned and has been out of use for say... 90 days, it would automatically remove its entry in the web browser.

    Thanks!
  • danrog
    Senior Member
    • Sep 2009
    • 164

    #2
    I haven't tried this myself yet (we've only recently rolled out Zabbix to our entire environment and at this point aren't worried about removing hosts), but you can try setting up a Remove Host Discovery Action based on Uptime/Downtime <= X Seconds. For this to work however, I think you would have to setup discovery for all the networks you want auto-remove hosts from.

    Comment

    • agentguerry
      Member
      • Jul 2009
      • 45

      #3
      Well, I tried this, and thought it would work, but it has not removed the host yet....

      These were my steps.
      "configuration tab", "action tab", then changed the dropdown in the right corner to "discovery".

      Then I "created action".

      Name: auto-remove
      Event Source: Discovery
      Default subject: triggername/status
      Default message: triggername/status

      Status: enabled
      Action Conditions: AND A&B discovery status = down, uptime/downtime >=300

      Action Operations: Remove Host, Send message to User "admin"

      *****

      Still, it doesn't remove the host in the monitoring list....

      any ideas?

      Comment

      • danrog
        Senior Member
        • Sep 2009
        • 164

        #4
        Change >= to <= and you have to have Network Discovery working for the hosts in question.

        Comment

        • zabbix_zen
          Senior Member
          • Jul 2009
          • 426

          #5
          Actually I have, working as expected, auto-remove rules like this,

          Uptime/Downtime >= "62400"
          Discovery status = "Lost"
          Host IP = "10.X.Y.1-255"

          Comment

          • clayton940
            Junior Member
            • Jul 2014
            • 21

            #6
            I've been running this essentially the same rule and I can't not get it to remove a host.

            A) Discovery Rule = "Rule with IP Range"
            B) Uptime/Downtime >= 300
            C) Discovery Status = Lost

            A and B and C

            I also used Discovery Status = Down and still doesn't remove the host.

            I'm not sure what the hang up here is. Anyone else experienced this and got it working?

            I'm on 2.4.7

            Comment

            • John Bellezza
              Junior Member
              • Apr 2016
              • 1

              #7
              I have the same issue in Zabbix 2.2.

              Looking at latest data...there is none. So the Uptime/Downtime >= X never passes.

              My full conditions are:

              Uptime/Downtime >= 1209600
              Discovery status = Down
              Service type = Zabbix agent

              Any thoughts on what I can add to the trigger for the situation of no data for X amount of time?

              I also have a number of triggers stuck in the on positions due to lack of reported data. I would love to be able to automatically account for this mess instead of manually fixing.

              Comment

              Working...