Device Set Maintenance
device_set_maintenancePlace a network device into maintenance mode in LibreNMS with a configurable duration, title, notes, and optional start time to suppress alerts during planned work.
Instructions
Set device maintenance in LibreNMS.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hostname": "<hostname>",
"payload": "<payload>"
},
"name": "device_set_maintenance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes | Maintenance mode payload: - duration (required): Duration in "H:i" format (e.g., "02:00" for 2 hours) - title (optional): Maintenance window title - notes (optional): Maintenance notes - start (optional): Start time in "Y-m-d H:i:00" format (default: now) | |
| hostname | Yes | Device hostname or ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||