Ad Widget

Collapse

Cannot delete hosts "" because maintenance "exch" must contain at least one host...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • leon.vinther
    Junior Member
    • Jul 2022
    • 3

    #1

    Cannot delete hosts "" because maintenance "exch" must contain at least one host...

    Upgrade from 5.0.25 to 6.2 and after my upgrade I decided to cleanup my maintenance jobs, so I deleted all of them to make new ones.

    After I deleted the jobs I can no longer delete hosts from "Maintenance"->"Hosts"

    All I get is the message in the topic.

    I have check the tables below and they are empty.

    "
    select * from maintenances;
    Empty set (0.000 sec)

    select * from maintenances_groups;
    Empty set (0.000 sec)
    "

    Anyone idea on how to correct this, so I can delete hosts again?

    Best Regards,
    Leon
    Last edited by leon.vinther; 26-07-2022, 10:46.
  • vladimir_lv
    Senior Member
    • May 2022
    • 240

    #2
    After I deleted the jobs I can no longer delete hosts from "Maintenance"->"Hosts"
    Did you mean Configuration->Hosts ?
    Check these hosts using the query:
    Code:
     select * from maintenances_hosts;

    Comment

    • leon.vinther
      Junior Member
      • Jul 2022
      • 3

      #3
      I used phpMyAdmin to run the selection and it returned an empty result.

      SELECT * FROM `maintenances_hosts`
      "MySQL returnerede ingen data (fx ingen rækker). (Forespørgsel tog 0.0003 sekunder.)"

      I looked through all of the maintenances tables and they are all empty.

      Comment

      • vladimir_lv
        Senior Member
        • May 2022
        • 240

        #4
        Use debug features of the frontend and you will see the queries when you try to delete the host.

        Comment

        • vladimir_lv
          Senior Member
          • May 2022
          • 240

          #5
          Check this:
          Code:
          select maintenanceid, maintenance_status, maintenance_type, maintenance_from from hosts where hostid= YOUR_HOST_ID;
          and then clear these columns for discovered hosts.

          Comment

          • leon.vinther
            Junior Member
            • Jul 2022
            • 3

            #6
            I get the following result:

            Click image for larger version

Name:	Udklip.png
Views:	894
Size:	30.7 KB
ID:	448745

            Comment

            Working...