Ad Widget

Collapse

maintenance

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mmbb123456
    Junior Member
    • Jun 2023
    • 4

    #1

    maintenance

    how do add 200 plus hosts in maintenance , I have the hosts in an excel file.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    If you can't use host groups to solve the problem, then I would look at writing a script or program that uses the Zabbix API to put all 200 hosts into maintenance.

    Comment

    • mmbb123456
      Junior Member
      • Jun 2023
      • 4

      #3
      Hi Tim,

      is there a way , I can import the list directly via Zabbix UI , add it to a host group and them add that group under maintenance?

      Comment

      • tim.mooney
        Senior Member
        • Dec 2012
        • 1427

        #4
        Not that I'm aware of.

        Comment

        • Vermizz
          Member
          • Oct 2022
          • 33

          #5
          This can be done via the API as Tim said.

          You can also mass add all these hosts to a given host group using mass update on filtered host.
          Do all these 200 hosts use a common template or do their names have the same prefix or suffix?​
          If yes go to the Configuration->hosts
          Next filter all needed host and use "Mass update" button and add all host to the host group. Next create maintenance for the host group.

          Comment

          • Gatlinllon
            Junior Member
            • Aug 2023
            • 1

            #6
            Have you checked if the system you're using provides any built-in features, APIs, or automation tools specifically designed to handle bulk maintenance mode operations for a large number of hosts?

            Comment

            • Cade324
              Junior Member
              • Dec 2023
              • 1

              #7
              What format do you want to export the host data in from the Excel file? (e.g., CSV, JSON, XML)​

              Comment

              Working...