Already a NinjaOne customer? Log in to view more guides and the latest updates.

Maintenance Mode

Topic

This article discusses how to work with Maintenance Mode in NinjaOne.

Environment

NinjaOne Endpoint Management

Description

Maintenance mode allows you to suppress selected features, such as patching and alerts, for a device or devices for a designated time window. 

Index

Select a category to learn more: 

Enabling Maintenance Mode for a Single Device

  1. Select the device in the Device dashboard, then place your cursor over the run iconMaintenance and select Configure.
MaintenanceMode_SingleDevice_Configure2.png
Figure 1: Run maintenance mode on a device (click to enlarge)
  1. In the Enable Maintenance Mode dialog box, configure maintenance mode options:
    • Start: Specify when maintenance mode should start on the machine. Select Now (upon setting the maintenance window) or specify a date and time.
    • End: Choose when the maintenance window should end. If you select Never, you can manually end the machine's maintenance window.
    • Features to suppress: Choose which alerts or messages to turn off during the maintenance window.
    • Reason Message: Enter an optional reason for the alert suppression. This message will appear in the device's Activities log. 

When finished, click Enable.

MaintenacneMode_OptConfig.png
Figure 2: Maintenance mode options (click to enlarge)

OS-Specific Activity Suppression

Some features cannot be suppressed depending on the device's operating system. In the following table of available features, macOS and Linux-only activities are marked with an asterisk (*). 

FeatureDescription
Notifications*This feature suppresses all email, short message service (SMS), and push notifications. This option will always be selected when enabling maintenance mode and cannot be deselected.
Condition alerts*Conditions will not be evaluated (and therefore will not trigger).
Automations/tasks*This feature suppresses all scheduled tasks and scheduled scripts, as well as the ability to run scripts manually.
Patch scanning and updatesThis feature suppresses all scheduled or ad-hoc OS and software patch scans and apply cycles.
Anti-virus scansThis feature suppresses all scheduled or ad-hoc scans for the integrated antivirus.

Enabling Maintenance Mode for Multiple Devices

You can select devices from different organizations and operating systems, and even devices not currently online.

  1. Open the Devices tab in the left navigation pane, then check the checkboxes to select the devices needing maintenance mode.
  2. Place your cursor over the Run menu at the top of the list, then select MaintenanceConfigure.
MaintenanceMode_MultiDevice2.png
Figure 3: Run device maintenance on multiple devices (click to enlarge)

3. Configure maintenance mode using the options described in Figure 2 above.

Scheduling Maintenance Mode with an Automation

Technicians can now schedule maintenance mode in advance for devices using automations. This feature allows for flexible, recurring maintenance windows that suppress alerts and notifications during planned activities, which is helpful for overnight patching, reboots, or routine Maintenance.

Maintenance Mode automation considerations

  • The Set Maintenance Mode automation is available on the NinjaOne platform version 10.0.0 or later.
  • The Set Maintenance Mode automation falls under the Maintenance category.
  • The Set Maintenance Mode automation is compatible with Windows, macOS, and Linux operating systems.
  • Executing the Set Maintenance Mode automation on a machine already in maintenance mode will overwrite the previously existing maintenance mode.
  • When the Set Maintenance Mode automation is executed, the device's entry into maintenance mode will appear in the Overview dashboard's Activities feed.
    • Technicians need the following permissions to view and run the Set Maintenance Mode automation:
      • System Maintenance modeView Update Create Delete

      • Automation LibraryView, Run on default access or View, Run Access in the Maintenance category (where the automation resides)

You can only configure one instance of maintenance mode at any one time. Existing maintenance modes that prevent scripting or tasks will stop the automation from executing.

To create a maintenance mode scheduled automation:

  1. Follow the configuration procedure in Policies: Scheduled Automations and add Set Maintenance Mode from the Automation Library.
SetMaintenanceMode_AutoLib.png
Figure 4: The Automation Library (click to enlarge)
  1. Configure the following options for the scheduled automation:
    • Duration: You can set the duration to Expires or Never Expires. If you choose the latter, your device will remain in Maintenance Mode when the automation finishes running.
    • Duration value: Specify how many hours you would like the device to remain in maintenance mode.
    • Features to suppress: Specify whether you wish to prevent any or all of the following alerts: Email/SMS notifications, Condition alerts, and Notification channels.
SetMaintenanceMode_Config.png
Figure 5: Automation condition options (click to enlarge)

Enabling the Maintenance Mode Patching Policy

This new patching policy setting lets devices automatically enter maintenance mode during patching install operations, suppressing alerts and notifications while patches are applied and devices reboot. This policy helps reduce false positives and unnecessary noise during routine patch deployments. The patching policy is available on the NinjaOne platform version 10.0.0 or later.

To apply the Maintenance Mode policy:
1. In NinjaOne, click AdministrationPoliciesAgent Polices and select the policy you wish to configure.

SetMaintenanceMode_Policynav.png
Figure 6: Policy Administration (click to enlarge)

2. Select the patching link in the left Navigation bar (This link may show as Patching, macOS Patching, or Windows Patches, depending on your operating system), then scroll to the Update Schedule and check the checkbox for Maintenance Mode

SetMaintenanceMode_MaintPolicy.png
Figure 7: Maintenance Mode in the Update Schedule (click to enlarge)

Updating or Clearing Maintenance Mode From Devices

Devices in maintenance mode display a yellow wrench icon indicating the active maintenance window.

There are three different places that you can manage and clear maintenance mode from devices:

The Device page

  1. Navigate to the device, then click the three dots (ellipsis) icon on the right side of the Health section.
    • To update the maintenance window, select Configure. After changing settings, the system will prompt you to confirm the override of your previous maintenance window. Click Yes to continue.
    • To clear the maintenance window, select Disable. The system will prompt you to confirm that the device's maintenance mode should be disabled.
MaintenanceMode_DevicePageDisable.png
Figure 8: Disable maintenance mode, dashboard health section  (click to enlarge)

The Devices tab

In the Devices tab, check the checkboxes for the devices you are updating.

  • To update the maintenance window, move your cursor over the Run menu at the top of the list, then select MaintenanceConfigure. After changing settings, the system will prompt you to confirm the override of your previous maintenance window. Click Yes to continue.
  • To clear the maintenance window, move your cursor over the Run menu at the top of the list, then select MaintenanceDisable. The system will prompt you to confirm that the device's maintenance mode should be disabled.

The Maintenance dashboard

 The maintenance dashboard, available at the system and organization levels, lets you view all devices with current or future maintenance windows scheduled.

  1. From either the system dashboard (click Dashboard in the left navigation pane) or the organization dashboard (select an organization from the system dashboard), open the Devices tab and select Maintenance. 
dashboard_maintenance.png
Figure 9: Navigating to device maintenance (click to enlarge)
  1. The system will show a list of devices currently in maintenance mode. You can sort by clicking the header names for Organization, Name, Device Role, Start Date, or End Date. Click Refresh to refresh the list. 
MaintenanceMode_MaintenanceDash.png
Figure 10: The Device Maintenance dashboard (click to enlarge)
  1. Select the devices. Additional options to Configure or Disable will appear at the top of the list.
    • Configure lets you override the existing maintenance window for the device or devices.
    • Disable allows you to clear the maintenance window from the device or devices.
MaintenanceModeMDConfig.png
Figure 11: Maintenance mode override options (click to enlarge)

Maintenance mode status priority

When a device is placed in maintenance mode, the health status set for this event will override the status for all other active events on that device. 

Suppose a device is put under maintenance mode (and Under Active Maintenance is set to Yellow/needs attention, but it is also an offline server (and Server Down is set to Red/unhealthy). In that case, the system will display the device as yellow in the dashboard.

Additional Resources

FAQ

Next Steps