- Nagios MCP
Nagios MCP
Overview
nagios-mcp
MCP Server for Nagios Core.
This server is built by us for the Nagios Core web-client.
The code for the server can be found here.
The server utilizes the CGI binaries located at the cgi-bin or sbin folder in your Nagios folder.
More specifically the statusjson.cgi and objectjson.cgi files for the purpose of the status and configuration tooling.
List of Tools:
| Tool Name | Tool Description |
|---|---|
get_host_status | Retrieves status for all hosts or a specific host. |
get_service_status | Retrieves status for services using statusjson.cgi. |
get_alerts | Retrieves current problematic host and service states (alerts). |
get_program_status | Retrieves the Nagios Core program status from statusjson.cgi |
get_hosts_in_group_status | Retrieves status for all hosts within a specific host group. |
get_services_in_group_status | Retrieves status for all services within a specific service group. |
get_services_on_host_in_group_status | Retrieves status for all the services with a specific host group. |
get_overall_health_summary | Retrieves overall health summary for all the hosts and services. |
get_unhandled_problems | Retrieves all the unhandled problems for all the hosts and services. |
get_object_list_config | Retrieves configuration list for object types like "hosts", "services", "hostgroups", etc. |
get_single_object_config | Retrieves configuration for a single specific object. |
get_host_dependencies | Retrieves host dependencies for the given host. |
get_service_dependencies | Retrieves service dependencies for the given host. |
get_contacts_for_object | Retrieves the list of contacts to inform for an object. |
get_comments | Retrieves comments based on the host and service. |
get_comment_by_id | Retrieves comments for the given comment id. |
get_downtimes | Retrieves the information for the downtimes in the Nagios Host Process. |
get_nagios_process_info | Returns the information for the Nagios process. (Alias for get_program_status function) |
- Currently all the tools use GET requests. Other useful tools and tools requiring POST requests will be added soon.
How the MCP server works?
- Nagios Core web-client is typically hosted on
http://YOUR_HOST/nagios/ - The MCP server reads the details about the processes and services using the CGI binaries, they can be found in the
cgi-binorsbinsub-directory in your Nagios main directory. - The Status Tools and Config Tools use the
cgi-bin/statusjson.cgiandcgi-bin/objectjson.cgifiles respectively for retrieving the information.
Server Config
{
"mcpServers": {
"nagios-mcp-stdio": {
"command": "uvx",
"args": [
"nagios-mcp",
"--config",
"ABSOLUTE_PATH_TO/nagios_config.yaml"
]
},
"nagios-mcp-sse": {
"url": "http://localhost:8000/sse"
}
}
}Project Info
Created At
a year agoUpdated At
a year agoAuthor Name
PROSPIRE-TECHNOLOGY-SERVICESStar
-Language
-License
-Tags
Recommend Servers
View AllSerper MCP Server
@garymengcom
A Serper MCP Server
Python
a year ago
Test
@modelcontextprotocol
test
6 months ago
mcp-server-flomo MCP Server
@chatmcp
Write notes to Flomo
JavaScript
a year ago
Playwright Mcp
@microsoft
Playwright MCP server
TypeScript
10 months ago
AppSumo Docs MCP
@5h0ov
12 hours ago
Filesystem
@modelcontextprotocol
2 months ago