Maintenance Windows

From Zenoss Wiki
This is the approved revision of this page, as well as being the most recent.
Jump to: navigation, search

Maintenance windows allow scheduled production state changes of a device or all devices in a system, group, or location. You might want to set up a maintenance window, for example, to prevent alerts and warnings while you perform configuration changes or reboot a device.

Bulbgraph.png Note: In lieu of setting up a maintenance window, you can change the production state for a device manually at the time you want to make changes.

When the maintenance window starts, the production state of the device is set to the value of Start Production State (Maintenance). When the maintenance window closes, the production state of the device reverts to the value of Stop Production State (the state the device was in prior to maintenance).

Time Zones

Before working with maintenance windows, it's important to understand how Zenoss manages time zones.

Zenoss 4

Zenoss will use the time zone that has been set on the system that Zenoss is installed on, rather than the time zone of the remote server. Keep this in mind as you configure maintenance windows for your environment, so that they go into effect at the correct times.

Zenoss 5

Zenoss will use the time zone that has been set in zport/dmd/ZenUsers/manageUserFolder for the user setting the Maintenance Window. Keep this in mind as you configure maintenance windows for your environment, so that they go into effect at the correct times.


Creating a Maintenance Window for a Device

Select the device from Devices in the Infrastructure tab.

With the device overview page displayed, select Administration from the menu at left. Select the Gear menu next to Maintenance Window in the main area, and select Add Maint Window... from the drop-down list.

You'll be prompted for a name for the maintenance window. This field is arbitrary; however, I recommend that it be something useful as it will generate an event containing that name when the window starts.

Next, click on the newly created window. You can edit the time, date and duration of the window, as well as setting it to repeat -- for instance, to cover a server that reboots in a given interval.

Creating a Maintenance Window for a Location

If you have scheduled maintenance windows, such as "2AM every Wednesday", you can actually use Locations to make configuring this very simple.

To create a maintenance window for an entire location, Go to the Infrastructure tab (with the Devices page enabled,) and then select the location in the left-hand area, and press the Details button above the left-hand area. In the new set of options that appear, select Administration, and you can modify maintenance windows in a manner similar to a single device.