# muhamaddarulhadi/health-checker architecture

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

- Interactive diagram: https://gitdiagram.com/muhamaddarulhadi/health-checker
- Repository: https://github.com/muhamaddarulhadi/health-checker

## Overview

This repository provides two platform-specific server diagnostic scripts and a browser-based usage guide. An operator runs the Windows or Linux checker on a server; it gathers health and security findings and prints an OK/WARN/FAIL report, with optional HTML and text-log output. The documented checks span resource and storage health, network and listening ports, and security and service state. The README also describes the generated HTML report’s summaries, tables, filters, and issue export. Source excerpts were unavailable, so relationships below rely on README statements rather than inspected implementation details.

Main entry points: [`scripts/healthcheck.ps1`](https://github.com/muhamaddarulhadi/health-checker/blob/main/scripts/healthcheck.ps1) (Windows Checker), [`scripts/healthcheck.sh`](https://github.com/muhamaddarulhadi/health-checker/blob/main/scripts/healthcheck.sh) (Linux Checker), [`scripts`](https://github.com/muhamaddarulhadi/health-checker/tree/main/scripts) (Resources and Storage), [`index.html`](https://github.com/muhamaddarulhadi/health-checker/blob/main/index.html) (Browser Guide)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runners["Platform Checkers"]
  node_windows["Windows Checker<br/>[healthcheck.ps1]"]
  node_linux["Linux Checker<br/>[healthcheck.sh]"]
end

subgraph group_checks["Diagnostic Areas"]
  node_resources["Resources and Storage"]
  node_network["Network and Ports"]
  node_security["Security and Services"]
end

subgraph group_results["Reports and Guide"]
  node_console["Text Report"]
  node_htmlreport["HTML Report"]
  node_guide["Browser Guide<br/>[index.html]"]
end

node_operator(("Operator"))

node_operator -->|"runs on Windows"| node_windows
node_operator -->|"runs on Linux"| node_linux
node_windows -->|"checks"| node_resources
node_windows -->|"checks"| node_network
node_windows -->|"checks"| node_security
node_linux -->|"checks"| node_resources
node_linux -->|"checks"| node_network
node_linux -->|"checks"| node_security
node_windows -->|"prints"| node_console
node_linux -->|"prints"| node_console
node_windows -->|"can save"| node_htmlreport
node_linux -->|"can save"| node_htmlreport
node_operator -->|"opens in browser"| node_guide

click node_windows "https://github.com/muhamaddarulhadi/health-checker/blob/main/scripts/healthcheck.ps1"
click node_linux "https://github.com/muhamaddarulhadi/health-checker/blob/main/scripts/healthcheck.sh"
click node_resources "https://github.com/muhamaddarulhadi/health-checker/tree/main/scripts"
click node_network "https://github.com/muhamaddarulhadi/health-checker/tree/main/scripts"
click node_security "https://github.com/muhamaddarulhadi/health-checker/tree/main/scripts"
click node_console "https://github.com/muhamaddarulhadi/health-checker/tree/main/scripts"
click node_htmlreport "https://github.com/muhamaddarulhadi/health-checker/tree/main/scripts"
click node_guide "https://github.com/muhamaddarulhadi/health-checker/blob/main/index.html"

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_windows,node_linux toneBlue
class node_resources,node_network,node_security toneAmber
class node_console,node_htmlreport,node_guide toneMint
class node_operator toneIndigo
```

## Components

### Platform Checkers

- [Windows Checker](https://github.com/muhamaddarulhadi/health-checker/blob/main/scripts/healthcheck.ps1): `scripts/healthcheck.ps1`
- [Linux Checker](https://github.com/muhamaddarulhadi/health-checker/blob/main/scripts/healthcheck.sh): `scripts/healthcheck.sh`

### Diagnostic Areas

- [Resources and Storage](https://github.com/muhamaddarulhadi/health-checker/tree/main/scripts): `scripts`
- [Network and Ports](https://github.com/muhamaddarulhadi/health-checker/tree/main/scripts): `scripts`
- [Security and Services](https://github.com/muhamaddarulhadi/health-checker/tree/main/scripts): `scripts`

### Reports and Guide

- [Text Report](https://github.com/muhamaddarulhadi/health-checker/tree/main/scripts): `scripts`
- [HTML Report](https://github.com/muhamaddarulhadi/health-checker/tree/main/scripts): `scripts`
- [Browser Guide](https://github.com/muhamaddarulhadi/health-checker/blob/main/index.html): `index.html`

### Other components

- **Operator**

## Connections

- Operator → Windows Checker: runs on Windows (evidence: `README.md`)
- Operator → Linux Checker: runs on Linux (evidence: `README.md`)
- Windows Checker → Resources and Storage: checks (evidence: `README.md`)
- Windows Checker → Network and Ports: checks (evidence: `README.md`)
- Windows Checker → Security and Services: checks (evidence: `README.md`)
- Linux Checker → Resources and Storage: checks (evidence: `README.md`)
- Linux Checker → Network and Ports: checks (evidence: `README.md`)
- Linux Checker → Security and Services: checks (evidence: `README.md`)
- Windows Checker → Text Report: prints (evidence: `README.md`)
- Linux Checker → Text Report: prints (evidence: `README.md`)
- Windows Checker → HTML Report: can save (evidence: `README.md`)
- Linux Checker → HTML Report: can save (evidence: `README.md`)
- Operator → Browser Guide: opens in browser (evidence: `README.md`)
