Actions83
- Bills Actions
- Alerts Actions
- Alert Rules Actions
- ARP Actions
- Devices Actions
- Device Groups Actions
- Inventory Actions
- Locations Actions
- Logs Actions
- Poller Groups Actions
- Ports Actions
- Port Groups Actions
- Routing Actions
- Services Actions
- Switching Actions
Overview
The "Set Maintenance" operation for the Device Groups resource in this node allows users to schedule a maintenance window for a specified device group within LibreNMS, a network monitoring system. This operation is useful for temporarily suppressing alerts or notifications related to devices in that group during planned maintenance activities, such as upgrades, hardware replacements, or troubleshooting.
Typical use cases include:
- Scheduling downtime for a group of network devices before performing firmware updates.
- Notifying the monitoring system about maintenance periods to avoid false alarms.
- Adding descriptive notes and specifying exact start times for maintenance windows.
For example, a network administrator can set a 2-hour maintenance window on the "Core Switches" device group starting at a specific time with a title and notes describing the purpose of the maintenance.
Properties
| Name | Meaning |
|---|---|
| Group Name | The name of the device group to apply maintenance to. |
| Duration | Length of the maintenance window in hours and minutes (format H:i, e.g., "2:00" for 2 hours). |
| Maintenance Options | Additional optional details for the maintenance: |
| - Title | A short title or summary for the maintenance event. |
| - Notes | Descriptive notes providing more context about the maintenance. |
| - Start Time | Exact start time for the maintenance window in Y-m-d H:i:s format (e.g., "2024-01-01 10:00:00"). |
Output
The node outputs JSON data representing the result of setting the maintenance window on the specified device group. This typically includes confirmation details such as the group name, maintenance duration, start time, and any metadata returned by the LibreNMS API confirming the update.
If the node supports binary output (not indicated here), it would generally relate to raw response data or logs, but this operation primarily deals with JSON responses.
Dependencies
- Requires an active connection to a LibreNMS instance via its REST API.
- Needs an API authentication token or key configured in the node credentials to authorize requests.
- The base URL of the LibreNMS API must be correctly set in the node credentials.
- Proper permissions on the LibreNMS server to modify device group maintenance settings.
Troubleshooting
- Invalid Group Name: If the specified device group does not exist, the API will likely return an error. Verify the group name spelling and existence in LibreNMS.
- Incorrect Duration Format: The duration must be in
H:iformat (e.g., "2:00"). Providing an invalid format may cause request failure. - Start Time Format Errors: The start time must follow the
Y-m-d H:i:sformat. Incorrect formatting can lead to errors or unexpected scheduling. - Authentication Failures: Ensure the API key/token is valid and has sufficient privileges.
- API Connectivity Issues: Network problems or incorrect API base URL configuration can prevent successful requests.
- Maintenance Overlaps: Setting overlapping maintenance windows might cause conflicts; check existing schedules if issues arise.