Ad Widget

Collapse

System Wide Maintenance Window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brianhill1980
    Junior Member
    • Jul 2019
    • 7

    #1

    System Wide Maintenance Window

    Hello,

    How do I create a maintenance window that applies to every host on my Zabbix instance? Essentially we have some night work planned tonight and I do not want Zabbix trying to send out alerts when it can't reach the hosts, or the agents stop responding. Every host needs to be in maintenance for a few hours, but there's no option when creating a Maintenance Window for "All Hosts". I know I can just add all the hosts groups, or add all the hosts individually, but is there no way to do this without doing that?

    In the past we've just turned off the Media Types that the alerts are sent out from. But this is a manual process and can't be scheduled.

    Thanks for any feedback.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    When I've needed to do something similar, I always end up applying it to all of our host groups. I have to make sure I'm logged in as 'Admin' because my personal account doesn't have access to some of our host groups.

    Comment

    • markosa
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Aug 2022
      • 104

      #3
      I would create script which uses API for fetching hostgroups containing monitored host(s)(hostgroup.get with monitored_hosts set to true), then do maintenance.create with groups received from previous step. You could then set that script as manual host action with predefined time windows... Bit clumsy but does it's job, hope we see "cron" within Zabbix UI which would allow similar action.

      Comment

      Working...