mcp-nagios-crunchtools

v0.11.0
mcp-nagios-crunchtools Checked 1 day ago Published 6 days ago

Secure MCP server for Nagios Core monitoring — query status, acknowledge problems, manage checks

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

nagios_host_status_tool Nagios Host Status Tool

Get the current status of a Nagios host.

ParameterTypeDescription
host_name *stringThe Nagios hostname to query.

nagios_service_status_tool Nagios Service Status Tool

Get the current status of a specific service on a host.

ParameterTypeDescription
host_name *stringThe Nagios hostname.
service_description *stringThe service description (e.g., 'HTTPS crunchtools.com').

nagios_current_problems_tool Nagios Current Problems Tool

List all hosts and services currently in a non-OK state.

nagios_program_status_tool Nagios Program Status Tool

Check whether the Nagios daemon itself is alive and actually working. Use this to verify the monitoring system, NOT to find outages. It is the right tool for a watchdog asking "is Nagios still able to tell me about problems?" -- nagios_current_problems_tool answers a different question and returns "no problems" both when all is well and when Nagios has silently stopped working. Detects a wedged daemon (CGI still returns 200 but status data is stale), globally disabled notifications (monitoring everything, alerting nobody), and disabled check execution. Raises on connection failure, so a dead…

ParameterTypeDescription
max_staleness_secondsintegerHow old Nagios's status data may be before the daemon is considered wedged. Default 60 (it refreshes every ~10s).

nagios_acknowledge_tool Nagios Acknowledge Tool

Acknowledge a host or service problem in Nagios.

ParameterTypeDescription
comment *stringAcknowledgement comment (e.g., 'Hermes is investigating').
host_name *stringThe hostname with the problem.
notifybooleanSend notification about the acknowledgement. Default True.
service_descriptionService name. Omit for host acknowledgement.
stickybooleanKeep acknowledged even if state changes. Default True.

nagios_add_comment_tool Nagios Add Comment Tool

Add a persistent comment to a host or service in Nagios.

ParameterTypeDescription
comment *stringComment text (e.g., 'Restarting service to resolve issue').
host_name *stringThe hostname.
service_descriptionService name. Omit for host comment.

nagios_schedule_check_tool Nagios Schedule Check Tool

Schedule a forced immediate re-check of a host or service.

ParameterTypeDescription
host_name *stringThe hostname to check.
service_descriptionService name. Omit for host check.

nagios_schedule_downtime_tool Nagios Schedule Downtime Tool

Schedule fixed downtime starting now, before planned work makes checks fail. Notifications stop for the window, and alert history counts problems inside it as planned work rather than noise. Cancel it with nagios_cancel_downtime_tool when the work is done.

ParameterTypeDescription
comment *stringWhat the work is and why, e.g. 'Josui: deploying mcp-trove 1.0.7 (RT #1550)'.
host_name *stringThe host. Without service_description, the host and every service on it go into downtime.
minutes *integerLength of the window, 5 to 480. It expires on its own.
service_descriptionOne service to put into downtime instead of the whole host.

nagios_list_downtimes_tool Nagios List Downtimes Tool

List scheduled downtime that is in effect or still to come.

ParameterTypeDescription
host_nameFilter to a specific host. Omit for all hosts.

nagios_cancel_downtime_tool Nagios Cancel Downtime Tool

End downtime this server scheduled, once the planned work is done. Only downtime recorded under this server's own author is cancelled.

ParameterTypeDescription
host_name *stringThe host. Without service_description, its host and service downtimes are all cancelled.
service_descriptionCancel only this service's downtime.

nagios_downtime_history_tool Nagios Downtime History Tool

List past and current downtime windows, read from nagios.log.

ParameterTypeDescription
host_nameFilter to a specific host. Omit for all hosts.
hoursintegerHow many hours back to look, 1 to 744. Default 168 (one week).

nagios_notification_history_tool Nagios Notification History Tool

Retrieve recent notification history from Nagios.

ParameterTypeDescription
host_nameFilter to a specific host. Omit for all hosts.
hoursintegerHow many hours of history to retrieve, 1 to 744. Default 24.

nagios_alert_history_tool Nagios Alert History Tool

Roll up Nagios state changes per host and service over a period. Unlike notification history, this includes warnings, soft states and problems that recovered without paging anyone, so it is where flapping shows.

ParameterTypeDescription
host_nameFilter to a specific host. Omit for all hosts.
hoursintegerHow many hours of history to roll up, 1 to 744. Default 168 (one week).