Ad Widget

Collapse

how do I remove a host? It always comes back in the GUI

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fkraus
    Junior Member
    • Feb 2022
    • 3

    #1

    how do I remove a host? It always comes back in the GUI

    Hi!

    we're running zabbix Server 6.0.0beta3.

    Although I removed a specific node already in the GUI, it still appears and always comes back again (is visible) after a few minutes ("Zabbix agent is not available")
    How do I completely remove a node?

    btw, the node is already shutdown, so it's not running anymore.
    And I have ActiveCheck configured.

    I do: Configuration> Hosts > select node > Delete button

    Thanks.
  • Damien_Dye
    Junior Member
    • Apr 2021
    • 10

    #2
    you have auto registration setup and another agent running in active mode using the same name ?

    Comment

    • fkraus
      Junior Member
      • Feb 2022
      • 3

      #3
      actually the agent is not running anymore, as I said, the node is already shutdown. But still it shows the node in the GUI with "Zabbix agent is not available" regarding that node

      And yes, it's set up with auto-registration; and active mode.

      But still, it's already shut down..

      Comment

      • tikkami
        Member
        • May 2018
        • 71

        #4
        What if some other agent is doing autoregistation with wrong hostname in it's configuration?

        Look at the ip address of created host. Is that correct?

        Comment

        • fkraus
          Junior Member
          • Feb 2022
          • 3

          #5
          that's nearly impossible. Because I have this behaviour with more than one node.
          Each node I don't need anymore (eg. I stop the VM) shows up after a short while again with "Zabbix agent is not available".

          Let me clarify this: if I want to remove a unused node from zabbix, is this theoretically the correct way? That's what I do:

          Configuration> Hosts > select node > Delete button

          -> it disappears from the monitoring dashboard. But comes back after a few minutes. I think zabbix still assumes the node should exist, it's saved under some configuration..., but where could I check?

          Comment

          • rootus
            Junior Member
            • Oct 2007
            • 19

            #6

            -> it disappears from the monitoring dashboard. But comes back after a few minutes. I think zabbix still assumes the node should exist, it's saved under some configuration..., but where could I check?[/QUOTE]
            same here.
            Did you solve it?

            Comment


            • fkraus
              fkraus commented
              Editing a comment
              the problem is not relevant anymore, because I'm not using zabbix anymore
          • vladimir_lv
            Senior Member
            • May 2022
            • 240

            #7
            Check your Discovery action, probably you have some actions that based on some Discovery rule just add the host to Zabbix

            Comment

            • rootus
              Junior Member
              • Oct 2007
              • 19

              #8
              Discovery data is still present.
              You can delete it by:

              {
              echo "connect zabbix_db;"
              echo "SET FOREIGN_KEY_CHECKS = 0;"
              for table_name in dhosts dservices
              do
              echo "TRUNCATE table $table_name;"
              done
              echo "SET FOREIGN_KEY_CHECKS = 1;"
              }| mysql --user=zabbix --password=myzabbixpasswd zabbix_db

              And the host will stay away.

              Comment

              Working...