Beszel - Data Exporter Tool

I hope this gets included in their software, and this can go away, but I wanted a way to document my servers and added a lookup IP to get location information. Exports the systems monitored by Beszel to a Markdown inventory table, followed by a fleet summary. It reads the PocketBase SQLite database directly in read-only mode, so the app does not need to be running and nothing is written to the database. Example output Here is a sample of what beszel-export -location produces, as GitHub renders it. The hosts are made up and the IPs come from the reserved documentation ranges. The real file also starts with a # Beszel Systems heading and a Generated line. System Hostname Host / IP Location Port OS Kernel Memory CPU Cores Disks Disk Used backup-01 backup-01 192.0.2.10 Amsterdam, North Holland, Netherlands 45876 Debian GNU/Linux 12 (bookworm) 6.1.0-37-amd64 15.6 GB Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz 4 (8 threads) root 1.78 TB 42% db-primary db1 198.51.100.20 Frankfurt am Main, Hesse, Germany 45876 Ubuntu 24.04.3 LTS 6.8.0-90-generic 7.8 GB AMD EPYC 7313 16-Core Processor 4 root 159.8 GB 61% legacy-win WIN-EXAMPLE01 203.0.113.30 Dallas, Texas, United States 45876 Windows Server 2019 Standard — — Intel(R) Xeon(R) Gold 5220R CPU @ 2.20GHz 2 — 38% old-agent — 203.0.113.45 Toronto, Ontario, Canada 45876 Linux — — — — — 27% web-01 web-01 192.0.2.50 New York, New York, United States 45876 Debian GNU/Linux 13 (trixie) 6.12.48+deb13-amd64 1.9 GB AMD EPYC 7763 64-Core Processor 2 root 49.8 GB 23% Summary Metric Best guess Basis Systems 5 — Total RAM ~40.9 GB 25.3 GB reported by 3 systems + 2 unreported at median 7.8 GB Total disk space ~2.30 TB 1.98 TB reported by 3 systems + 2 unreported at median 159.8 GB Total CPU cores ~16 (20 threads) 12 reported by 4 systems + 1 unreported at median 4

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论