# cherts/linux-scripts architecture

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

- Interactive diagram: https://gitdiagram.com/cherts/linux-scripts
- Repository: https://github.com/cherts/linux-scripts

## Overview

This repository is an administrator’s toolbox of independent Linux/Unix scripts, organized by service or task rather than a single application. The common workflow is to choose and run a relevant script, then inspect its output or system changes. One concrete example is ps_mem.py, which reads process information from procfs and reports memory use. The sampled source supports that flow; other branches are represented by their tree paths and documented collection purpose, without inferring calls between scripts.

Main entry points: [`linux/ps_mem.py`](https://github.com/cherts/linux-scripts/blob/master/linux/ps_mem.py) (Process memory), [`README.md`](https://github.com/cherts/linux-scripts/blob/master/README.md) (Script collection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_system["System administration"]
  node_memory["Process memory<br/>[ps_mem.py]"]
  node_linuxutils["Linux utilities"]
  node_procfs[("Process filesystem")]
end

subgraph group_services["Service management"]
  node_dns["DNS and certificates"]
  node_nginx["Nginx configuration"]
  node_monit["Monit service checks"]
  node_mtproxy["MTProxy management"]
end

subgraph group_data["Databases and backup"]
  node_mysql["MySQL tools"]
  node_postgres["PostgreSQL tools"]
  node_clickhouse["ClickHouse backup"]
  node_xtrabackup["XtraBackup scripts"]
  node_restic["Restic backups"]
end

subgraph group_monitoring["Monitoring and infrastructure"]
  node_zabbix["Zabbix management"]
end

node_admin(("Administrator"))
node_toolbox["Script collection<br/>[README.md]"]

node_admin -->|"uses"| node_toolbox
node_memory -->|"reads process data"| node_procfs

click node_toolbox "https://github.com/cherts/linux-scripts/blob/master/README.md"
click node_memory "https://github.com/cherts/linux-scripts/blob/master/linux/ps_mem.py"
click node_linuxutils "https://github.com/cherts/linux-scripts/tree/master/linux"
click node_dns "https://github.com/cherts/linux-scripts/tree/master/dns"
click node_nginx "https://github.com/cherts/linux-scripts/tree/master/nginx"
click node_monit "https://github.com/cherts/linux-scripts/tree/master/monit"
click node_mtproxy "https://github.com/cherts/linux-scripts/tree/master/mtproxy"
click node_mysql "https://github.com/cherts/linux-scripts/tree/master/mysql"
click node_postgres "https://github.com/cherts/linux-scripts/tree/master/postgres"
click node_clickhouse "https://github.com/cherts/linux-scripts/tree/master/clickhouse"
click node_xtrabackup "https://github.com/cherts/linux-scripts/tree/master/mysql/xtrabackup"
click node_restic "https://github.com/cherts/linux-scripts/tree/master/restic"
click node_zabbix "https://github.com/cherts/linux-scripts/tree/master/zabbix"

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_memory,node_linuxutils,node_procfs toneBlue
class node_dns,node_nginx,node_monit,node_mtproxy toneAmber
class node_mysql,node_postgres,node_clickhouse,node_xtrabackup,node_restic toneMint
class node_zabbix toneRose
class node_admin toneIndigo
class node_toolbox toneTeal
```

## Components

### System administration

- [Process memory](https://github.com/cherts/linux-scripts/blob/master/linux/ps_mem.py): `linux/ps_mem.py`
- [Linux utilities](https://github.com/cherts/linux-scripts/tree/master/linux): `linux`
- **Process filesystem**

### Service management

- [DNS and certificates](https://github.com/cherts/linux-scripts/tree/master/dns): `dns`
- [Nginx configuration](https://github.com/cherts/linux-scripts/tree/master/nginx): `nginx`
- [Monit service checks](https://github.com/cherts/linux-scripts/tree/master/monit): `monit`
- [MTProxy management](https://github.com/cherts/linux-scripts/tree/master/mtproxy): `mtproxy`

### Databases and backup

- [MySQL tools](https://github.com/cherts/linux-scripts/tree/master/mysql): `mysql`
- [PostgreSQL tools](https://github.com/cherts/linux-scripts/tree/master/postgres): `postgres`
- [ClickHouse backup](https://github.com/cherts/linux-scripts/tree/master/clickhouse): `clickhouse`
- [XtraBackup scripts](https://github.com/cherts/linux-scripts/tree/master/mysql/xtrabackup): `mysql/xtrabackup`
- [Restic backups](https://github.com/cherts/linux-scripts/tree/master/restic): `restic`

### Monitoring and infrastructure

- [Zabbix management](https://github.com/cherts/linux-scripts/tree/master/zabbix): `zabbix`

### Other components

- **Administrator**
- [Script collection](https://github.com/cherts/linux-scripts/blob/master/README.md): `README.md`

## Connections

- Administrator → Script collection: uses (evidence: `README.md`)
- Process memory → Process filesystem: reads process data (evidence: `linux/ps_mem.py`)
