vibeMK

io.github.chexmav0.6.4更新於 Oct 3, 2026

Query and configure CheckMK monitoring: hosts, services, rules, downtimes, metrics

概覽

AI 產生的概覽

讓助手用自然語言讀取與修改 CheckMK 監控:主機、服務、規則、停機、指標與使用者。

功能
vibeMK 將助手連接到 CheckMK 監控站台。它能讀取主機與服務的即時狀態、效能指標與目前問題,也能安排停機、確認或移除確認,並建立資料夾、規則、時間區段、主機群組、標籤、使用者帳號與聯絡人群組。支援 CheckMK 2.3.x 至 2.5.x,涵蓋 Raw、Enterprise 與 Cloud 版本。
適用情境
當你想以對話方式檢視或管理 CheckMK 環境時適用,例如查看目前故障、比較主機之間的指標、安排維護時段,或檢查並合併規則集。若只做分析,可使用唯讀模式。
執行需求
以 Python 套件形式在本機執行(pipx、uv 或 pip),由 MCP 用戶端透過 stdio 啟動。需要 CheckMK 伺服器網址、站台名稱與自動化使用者,以及 CHECKMK_PASSWORD 中的自動化密鑰;可選 CHECKMK_VERIFY_SSL、NEVER_ACTIVATE_CHANGES 與 VIBEMK_READ_ONLY。進行變更需要自動化使用者具備管理員權限,僅分析可用唯讀角色。可選的 HTTP 模式需要 bearer 權杖。
安裝前請注意
此伺服器可以寫入 CheckMK:建立與刪除資料夾、規則、使用者與停機,並修改確認狀態;README 說明它處於 alpha 階段,使用風險自負。CHECKMK_PASSWORD 中的自動化密鑰擁有該帳號的權限,建議盡量使用唯讀角色或 VIBEMK_READ_ONLY。HTTP 模式下權杖是必要的,且該連接埠會繼承 CheckMK 帳號的存取權限。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 vibeMK,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

vibeMK 🚀

CheckMK Monitoring via LLM - Professional MCP Server

[Python 3.10+] [CheckMK 2.3+] [License: GPL v3] [MCP Compatible] [MCP SDK] [Code style: black] [Typed]

🎯 Overview

vibeMK enables complete management of your CheckMK monitoring environment directly through LLM interfaces using natural language. This project is in the alpha stage and under development. I accept no liability for any damage resulting from the use of this software.

vibeMK - Current Features

Live Monitoring ✅

  • Host Status: Real-time host state (UP/DOWN/UNREACHABLE) with hard state detection
  • Service Status: Live service monitoring (OK/WARNING/CRITICAL/UNKNOWN)
  • Performance Metrics: Retrieve metrics data with automatic discovery
  • Current Problems: Auto-detect all active monitoring issues

Downtime Management ✅

  • Schedule Downtimes: Create host/service downtimes with flexible duration parsing ("2h", "1h30m")
  • List & Filter: View all downtimes or filter for active ones only

Problem Management ✅

  • Acknowledge Problems: Set acknowledgements for host/service issues (sticky/persistent options)
  • List Acknowledgements: View all current problem acknowledgements
  • Remove Acknowledgements: Delete by pattern or individual removal

Configuration Management ✅

  • Folders: Create/delete monitoring folder structures
  • Rules: Create rules for 2000+ CheckMK ruleset types with proper format handling
  • Time Periods: Create custom notification schedules (business hours, 24/7, etc.)
  • Host Groups: Organize hosts into logical groups

User & Security ✅

  • User Accounts: Create/manage user accounts with role assignment
  • Password Management: Set passwords with policy enforcement
  • Contact Groups: Manage notification groups
  • Host/Service Tags: Comprehensive tagging system

🚀 Quick Start

bash
1. pipx install vibemk   (or: uv tool install vibemk, or pip install vibemk into a virtual environment)2. Edit the configuration file of your LLM Client, e.g. Claude Desktop - claude_desktop_config.json (See examples)3. Start your LLM Client4. CheckMK automation user setup (Administrator permissions or a customized role if changes are to be made, read-only if only analyses are to be performed.)5. voila - configure checkmk using natural language

Complete Installation Guide: See INSTALL.md for detailed step-by-step instructions. Upgrading from 0.3.x or older: git pull is not enough, see Upgrading. More Examples: See examples/llm_configs/ and INSTALL.md
Visual Examples: See examples/Screenshots/ for example prompts and usage patterns

🔌 Running it

Locally (default). The LLM client starts vibeMK itself over stdio. Nothing to host, nothing to secure -- the client already owns the process.

Centrally. One instance can serve many clients over Streamable HTTP, so they need neither Python nor vibeMK installed:

bash
export VIBEMK_HTTP_TOKEN="$(python -c 'import secrets; print(secrets.token_urlsafe(32))')"vibemk --transport http --port 8765

Clients connect to http://<host>:8765/mcp and send Authorization: Bearer <token>. The token is mandatory, and vibeMK binds to localhost unless told otherwise: the CheckMK account lives on the server, so whoever reaches the port inherits it. See INSTALL.md for what that means before you expose it.

💡 Practical Prompt Examples

bash
# Add new server"Create a new host 'web-server-05' in folder 'Servers' with IP 192.168.1.105 and discover all services"
# Schedule maintenance"Schedule a 2-hour downtime for the service Check_MK on 'cephnode01' starting at 22:00 tomorrow for 'Debian Updates'"
# Downtimes "show me all current scheduled downtimes."
# Metric analysis"Compare the “response_time” metric of the “HTTPS Webservice” service of the two hosts www.google.de and www.heise.de for the last ten minutes."
# Ruleset analysis"analyze and compare the rulesets "Filesystems (used space and growth)" and see, if there are duplicates or if rules can be combined."

Advanced Usage: See examples/ExamplePrompts.md for complex scenarios and tips

📚 Checkmk version compatibility

CheckMK VersionCompatibilityFeatures
2.5.x✅ FullAll features available, tested against 2.5.0p14 (Raw and Ultimate)
2.4.x✅ FullAll features available
2.3.x✅ FullAll features available
2.2.x and older🔴 Unsupported

Checkmk Edition Support

  • Raw Edition: Fully supported, including the BI and Event Console endpoints
  • Enterprise Edition: Adds the Agent Bakery and custom graphs
  • Cloud Edition: All Enterprise features

Edition availability follows the operationId of each endpoint in the Checkmk OpenAPI document: cmk.gui.cee.* is Enterprise-only, everything else is served by every edition including Raw.

Security considerations

  • To let a model look without touching, start vibeMK read-only: --read-only or VIBEMK_READ_ONLY=1. Only the tools that read are offered, and a call to any other is refused before it reaches CheckMK
  • Be aware of the potential security risks when you unleash AI on your checkmk
  • Use at your own risk
  • I accept no responsibility for actions performed by an AI

📄 License

This project is licensed under the GNU General Public License v3.0.


Happy Monitoring with CheckMK and LLMs! 🎉

來源:README.md,提交 e1cc869

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.6.4最新Oct 3, 2026