# danielpauldd/checkmk architecture

> Architecture diagram of the GitHub repository danielpauldd/checkmk, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/danielpauldd/checkmk
- Repository: https://github.com/danielpauldd/checkmk

## Overview

This repository is a collection of Checkmk monitoring plugins for CryptoSpike, Pi-hole, and Sophos XG hardware. In the typical user-to-result workflow, an operator configures a monitored host in Checkmk; plugin agents obtain product data, agent-based checks parse and evaluate it, and Checkmk presents service states and metrics. The sampled code confirms shared parsing for several check modules, but not every agent-to-service connection. Those collection links are therefore omitted; Pi-hole and Sophos subsystems are represented from the file tree and source index where implementation excerpts were unavailable.

Main entry points: [`pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_common.py`](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_common.py) (Shared data parser), [`cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_common.py`](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_common.py) (Shared data parser), [`cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_blockedusers.py`](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_blockedusers.py) (User status checks), [`cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_landscape.py`](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_landscape.py) (Landscape checks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cryptospike["CryptoSpike monitoring"]
  node_cs_agent["CryptoSpike agent"]
  node_cs_special["Special-agent config<br/>[special_agent.py]"]
  node_cs_parser["Shared data parser"]
  node_cs_users["User status checks"]
  node_cs_landscape["Landscape checks"]
  node_cs_license["License checks"]
  node_cs_services["Service checks"]
  node_cs_version["Version checks"]
  node_cs_rules["Monitoring rules"]
  node_cs_graph["Blocked-user graphing"]
end

subgraph group_pihole["Pi-hole monitoring"]
  node_ph_agent["Pi-hole agent"]
  node_ph_helper["REST request helper<br/>[request_helper.py]"]
  node_ph_special["Special-agent config<br/>[special_agent.py]"]
  node_ph_parser["Shared data parser"]
  node_ph_messages["Message checks"]
  node_ph_summary["Summary checks"]
  node_ph_state["Blocking-state checks"]
  node_ph_version["Version checks"]
  node_ph_dbsize["Database-size checks"]
  node_ph_rules["Monitoring rules"]
  node_ph_graphs["Metric graphing"]
end

subgraph group_sophos["Sophos hardware"]
  node_sh_fan["Fan checks"]
  node_sh_psu["Power-supply checks"]
  node_sh_temp["Temperature checks"]
  node_sh_rules["Monitoring rules"]
end

node_operator(("Monitoring operator"))
node_checkmk["Checkmk"]

node_operator -.->|"configures monitoring"| node_checkmk
node_cs_users -->|"parses with"| node_cs_parser
node_cs_landscape -->|"parses with"| node_cs_parser
node_cs_license -->|"parses with"| node_cs_parser
node_cs_version -->|"parses with"| node_cs_parser
node_ph_messages -->|"parses with"| node_ph_parser
node_ph_summary -->|"parses with"| node_ph_parser
node_ph_state -->|"parses with"| node_ph_parser
node_ph_version -->|"parses with"| node_ph_parser
node_ph_dbsize -->|"parses with"| node_ph_parser

click node_cs_agent "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/libexec/agent_cryptospike"
click node_cs_special "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/server_side_calls/special_agent.py"
click node_cs_parser "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_common.py"
click node_cs_users "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_blockedusers.py"
click node_cs_landscape "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_landscape.py"
click node_cs_license "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_license.py"
click node_cs_services "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_services.py"
click node_cs_version "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_version.py"
click node_cs_rules "https://github.com/danielpauldd/checkmk/tree/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/rulesets"
click node_cs_graph "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/graphing/cryptospike_blockedusers.py"
click node_ph_agent "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/libexec/agent_pihole_rest"
click node_ph_helper "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/libexec/request_helper.py"
click node_ph_special "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/server_side_calls/special_agent.py"
click node_ph_parser "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_common.py"
click node_ph_messages "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_messages.py"
click node_ph_summary "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_summary.py"
click node_ph_state "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_state.py"
click node_ph_version "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_version.py"
click node_ph_dbsize "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_dbfilesize.py"
click node_ph_rules "https://github.com/danielpauldd/checkmk/tree/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/rulesets"
click node_ph_graphs "https://github.com/danielpauldd/checkmk/tree/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/graphing"
click node_sh_fan "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/sophosxg_hardware/cmk_addons_plugins/sophosxg_hardware/agent_based/sophosxg_hardware_fan.py"
click node_sh_psu "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/sophosxg_hardware/cmk_addons_plugins/sophosxg_hardware/agent_based/sophosxg_hardware_psu_summary.py"
click node_sh_temp "https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/sophosxg_hardware/cmk_addons_plugins/sophosxg_hardware/agent_based/sophosxg_hardware_temperature.py"
click node_sh_rules "https://github.com/danielpauldd/checkmk/tree/checkmk-2.3/sophosxg_hardware/cmk_addons_plugins/sophosxg_hardware/rulesets"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cs_agent,node_cs_special,node_cs_parser,node_cs_users,node_cs_landscape,node_cs_license,node_cs_services,node_cs_version,node_cs_rules,node_cs_graph toneBlue
class node_ph_agent,node_ph_helper,node_ph_special,node_ph_parser,node_ph_messages,node_ph_summary,node_ph_state,node_ph_version,node_ph_dbsize,node_ph_rules,node_ph_graphs toneAmber
class node_sh_fan,node_sh_psu,node_sh_temp,node_sh_rules toneMint
class node_operator,node_checkmk toneIndigo
```

## Components

### CryptoSpike monitoring

- [CryptoSpike agent](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/libexec/agent_cryptospike): `cryptospike/cmk_addons_plugins/cryptospike/libexec/agent_cryptospike`
- [Special-agent config](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/server_side_calls/special_agent.py): `cryptospike/cmk_addons_plugins/cryptospike/server_side_calls/special_agent.py`
- [Shared data parser](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_common.py): `cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_common.py`
- [User status checks](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_blockedusers.py): `cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_blockedusers.py`
- [Landscape checks](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_landscape.py): `cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_landscape.py`
- [License checks](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_license.py): `cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_license.py`
- [Service checks](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_services.py): `cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_services.py`
- [Version checks](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_version.py): `cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_version.py`
- [Monitoring rules](https://github.com/danielpauldd/checkmk/tree/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/rulesets): `cryptospike/cmk_addons_plugins/cryptospike/rulesets`
- [Blocked-user graphing](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/cryptospike/cmk_addons_plugins/cryptospike/graphing/cryptospike_blockedusers.py): `cryptospike/cmk_addons_plugins/cryptospike/graphing/cryptospike_blockedusers.py`

### Pi-hole monitoring

- [Pi-hole agent](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/libexec/agent_pihole_rest): `pihole_rest/cmk_addons_plugins/pihole_rest/libexec/agent_pihole_rest`
- [REST request helper](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/libexec/request_helper.py): `pihole_rest/cmk_addons_plugins/pihole_rest/libexec/request_helper.py`
- [Special-agent config](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/server_side_calls/special_agent.py): `pihole_rest/cmk_addons_plugins/pihole_rest/server_side_calls/special_agent.py`
- [Shared data parser](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_common.py): `pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_common.py`
- [Message checks](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_messages.py): `pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_messages.py`
- [Summary checks](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_summary.py): `pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_summary.py`
- [Blocking-state checks](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_state.py): `pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_state.py`
- [Version checks](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_version.py): `pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_version.py`
- [Database-size checks](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_dbfilesize.py): `pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_dbfilesize.py`
- [Monitoring rules](https://github.com/danielpauldd/checkmk/tree/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/rulesets): `pihole_rest/cmk_addons_plugins/pihole_rest/rulesets`
- [Metric graphing](https://github.com/danielpauldd/checkmk/tree/checkmk-2.3/pihole_rest/cmk_addons_plugins/pihole_rest/graphing): `pihole_rest/cmk_addons_plugins/pihole_rest/graphing`

### Sophos hardware

- [Fan checks](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/sophosxg_hardware/cmk_addons_plugins/sophosxg_hardware/agent_based/sophosxg_hardware_fan.py): `sophosxg_hardware/cmk_addons_plugins/sophosxg_hardware/agent_based/sophosxg_hardware_fan.py`
- [Power-supply checks](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/sophosxg_hardware/cmk_addons_plugins/sophosxg_hardware/agent_based/sophosxg_hardware_psu_summary.py): `sophosxg_hardware/cmk_addons_plugins/sophosxg_hardware/agent_based/sophosxg_hardware_psu_summary.py`
- [Temperature checks](https://github.com/danielpauldd/checkmk/blob/checkmk-2.3/sophosxg_hardware/cmk_addons_plugins/sophosxg_hardware/agent_based/sophosxg_hardware_temperature.py): `sophosxg_hardware/cmk_addons_plugins/sophosxg_hardware/agent_based/sophosxg_hardware_temperature.py`
- [Monitoring rules](https://github.com/danielpauldd/checkmk/tree/checkmk-2.3/sophosxg_hardware/cmk_addons_plugins/sophosxg_hardware/rulesets): `sophosxg_hardware/cmk_addons_plugins/sophosxg_hardware/rulesets`

### Other components

- **Monitoring operator**
- **Checkmk**

## Connections

- Monitoring operator → Checkmk: configures monitoring (evidence: `README.md`)
- User status checks → Shared data parser: parses with (evidence: `cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_blockedusers.py`)
- Landscape checks → Shared data parser: parses with (evidence: `cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_landscape.py`)
- License checks → Shared data parser: parses with (evidence: `cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_license.py`)
- Version checks → Shared data parser: parses with (evidence: `cryptospike/cmk_addons_plugins/cryptospike/agent_based/cryptospike_version.py`)
- Message checks → Shared data parser: parses with (evidence: `pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_messages.py`)
- Summary checks → Shared data parser: parses with (evidence: `pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_summary.py`)
- Blocking-state checks → Shared data parser: parses with (evidence: `pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_state.py`)
- Version checks → Shared data parser: parses with (evidence: `pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_version.py`)
- Database-size checks → Shared data parser: parses with (evidence: `pihole_rest/cmk_addons_plugins/pihole_rest/agent_based/pihole_rest_dbfilesize.py`)
