EN

equilibrise/nagios-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

5 stars 7 forks 품질 64 트렌드 6Apache-2.0

Nagios 핵심을 위한 MCP 서버

개요

이 서버는 Nagios 핵심 웹 클라이언트를 위해 저희에 의해 건축됩니다. 서버의 코드는 여기에서 찾을 수 있습니다. 서버는 Nagios 폴더의 cgi-bin 또는 sbin 폴더에 위치한 CGI binaries를 사용합니다. statusjson.cgi 및 objectjson.cgi 파일이 더 구체적으로 상태 및 구성 툴링의 목적에 따라 다릅니다. 2. config 파일 만들기 nagios config.yaml 또는 nagios config.json 아래의 구성 매개 변수를 가진 파일. - mcp 서버는 기본적으로 STDIO 수송에서 실행됩니다. SSE 수송이 필요없는 경우, 이 부분을 건너 뛸 수 있습니다. - 명령: uvx nagios-mcp --config NAGIOS CONFIG FILE --transport sse --host localhost --port 8000 - 공식 설정 가이드 - Claude Desktop에서 설정하려면 Settings -> Developer -> Edit Config으로 이동하십시오. 또는 직접 구성 파일을 수정, - MacOS: ~/Library/Application Support/Claude/claude desktop config.json - Windows: %APPDATA%\Claude\claude desktop config.

개요(AI 번역)

Nagios 핵심을 위한 MCP 서버.

이 서버는 Nagios 핵심 웹 클라이언트를 위해 저희에 의해 건축됩니다. 서버의 코드는 여기에서 찾을 수 있습니다. 서버는 cgi-bin 또는 sbin] 폴더에 있는 CGI binaries를 사용합니다. 더 구체적으로 statusjson.cgi와 objectjson.cgi]는 상태 및 구성 툴링의 목적에 대한 파일입니다.

설치하는 방법:

설정

  1. PyPI 패키지 설치

  2. 설정파일 만들기 nagios_config.yaml 또는 nagios_config.json]] 를 작성하여 구성 매개 변수를 지정합니다.

SSE 서버 시작

  • mcp 서버는 기본적으로 STDIO 수송에서 실행됩니다. SSE 수송이 필요없는 경우, 이 부분을 건너 뛸 수 있습니다.
  • 명령: uvx nagios-mcp --config NAGIOS_CONFIG_FILE --transport sse --host localhost --port 8000

Claude 데스크탑

  • 공식 설정 가이드

  • Claude 데스크톱에서 설정하려면 Settings] -> Developer] -> Edit Config]로 이동하십시오. 또는 직접 config 파일을 수정,

  • 맥 OS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • 윈도우: %APPDATA%\Claude\claude_desktop_config.json

  • config 파일에 다음 블록을 추가,

  • SSE 수송을 위해:

# # # 커서

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

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.

How to install:

Setting up

  1. Installing the PyPI package
# Using pip
pip install nagios-mcp # or pipx install nagios-mcp

# Using uv (Recommended)
uv tool install nagios-mcp
  1. Creating a config file Create a nagios_config.yaml or nagios_config.json file with the configuration parameters given below.
nagios_url: "http://localhost/nagios"
nagios_user: "your_nagios_core_username"
nagios_pass: "your_nagios_core_password"
ca_cert_path: "path_to_your_ssl_cert" # if the url is https, otherwise leave it empty ("")

Starting the SSE server

  • The mcp server by default runs on STDIO transport. If you do not require SSE transport, you can skip this section.
  • Command: uvx nagios-mcp --config NAGIOS_CONFIG_FILE --transport sse --host localhost --port 8000

For Claude Desktop

  • Official setup guide
  • For setting up in Claude Desktop, go to Settings -> Developer -> Edit Config. Or directly modify the config file,
    • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Add the following block to the config file,
{
  "mcpServers": {
    "nagios": {
      "command": "uvx",
      "args": [
        "nagios-mcp",
        "--config",
        "PATH_TO_THE_NAGIOS_CONFIG_FILE",
      ],
    },
  },
}
  • For SSE transport:
{
    "mcpServers": {
        "nagios": {
            "url": "http://localhost:8000/sse" # change this if you are using different port
        }
    }
}

For Cursor

  • Official setup guide
  • To setup the server in Cursor, go to Setting -> MCP -> Add new global MCP server, and add the following: For STDIO transport:
{
  "mcpServers": {
    "nagios": {
        "command": "uvx",
        "args": [
                "nagios-mcp",
                "--config", "PATH_TO_THE_NAGIOS_CONFIG_FILE"
            ],
        }
    }
}
  • For SSE Transport:
{
    "mcpServers": {
        "nagios": {
GitHub에서 전체 README 보기

설치

uvx nagios-mcp --config PATH_TO_THE_NAGIOS_CONFIG_FILE
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "nagios": { "command": "uvx", "args": [ "nagios-mcp", "--config", "PATH_TO_THE_NAGIOS_CONFIG_FILE", ], }, }, }