Nagios Add Comment Tool
nagios_add_comment_toolAdd a persistent comment to a Nagios host or service to record incident context, maintenance windows, or resolution steps.
Instructions
Add a persistent comment to a host or service in Nagios.
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": {
"host_name": "<host_name>",
"comment": "<comment>"
},
"name": "nagios_add_comment_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment | Yes | Comment text (e.g., 'Restarting service to resolve issue'). | |
| host_name | Yes | The hostname. | |
| service_description | No | Service name. Omit for host comment. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |