From ffe270b1556d6f9a1cba324cee7f4c9048cf597e Mon Sep 17 00:00:00 2001 From: Knuspii <220954979+Knuspii@users.noreply.github.com> Date: Thu, 24 Sep 2026 12:37:34 +0200 Subject: [PATCH 1/4] Update version to v0.4 and add podman-user option because of rootless podman --- server-vibecheck.sh | 61 +++++++++++++++++++++++++++++++++++---------- 1 file changed, 48 insertions(+), 13 deletions(-) diff --git a/server-vibecheck.sh b/server-vibecheck.sh index 5772c80..5f7e4da 100644 --- a/server-vibecheck.sh +++ b/server-vibecheck.sh @@ -6,7 +6,7 @@ set -euo pipefail -VERSION="v0.3" +VERSION="v0.4" GREEN="\033[32m" YELLOW="\033[33m" BLUE="\033[34m" @@ -55,12 +55,14 @@ Usage: server-vibecheck [OPTIONS] Options: - NO OPTION Start scan - -h, --help Show this help message - -l, --log Write output to log file - -u, --update Update to the latest version - -d, --debug Enable debug output - -v, --version Show version + NO OPTION Start scan + -h, --help Show this help message + -l, --log Write output to log file + -u, --update Update to the latest version + -d, --debug Enable debug output + -v, --version Show version + --podman-user User whose Podman containers should be checked + Use 'auto' to detect the user automatically Made by Knuspii EOF @@ -178,6 +180,14 @@ while [[ $# -gt 0 ]]; do fi exit 0 ;; + --podman-user) + if [[ -z "${2:-}" ]]; then + echo "Missing argument for --podman-user" + exit 1 + fi + PODMAN_USER="$2" + shift 2 + ;; -d|--debug|--verbose) DEBUG=true shift @@ -203,6 +213,16 @@ while [[ $# -gt 0 ]]; do esac done +# ---------------- PODMAN USER DETECT ---------------- + +if [[ "${PODMAN_USER}" == "auto" ]]; then + if [[ -n "${SUDO_USER:-}" && "${SUDO_USER}" != "root" ]]; then + PODMAN_USER="${SUDO_USER}" + else + PODMAN_USER="${USER}" + fi +fi + # ---------------- LOGGING ---------------- if [[ -n "${LOG_FILE}" ]]; then @@ -528,17 +548,32 @@ fi debug "Checking Podman..." -if command -v podman >/dev/null; then - if podman info >/dev/null 2>&1; then - running=$(podman ps -q 2>/dev/null | wc -l) +if command -v podman >/dev/null 2>&1; then + + PODMAN_CMD=(podman) + if [[ "${PODMAN_USER}" != "${USER}" ]]; then + PODMAN_CMD=(sudo -u "${PODMAN_USER}" podman) + fi + if "${PODMAN_CMD[@]}" info >/dev/null 2>&1; then + running=$("${PODMAN_CMD[@]}" ps -q 2>/dev/null | wc -l) + unhealthy=$("${PODMAN_CMD[@]}" ps --filter health=unhealthy -q 2>/dev/null | wc -l) ok "Podman is working" - ok "Podman containers running: ${running}" + + if [[ "${running}" -eq 0 ]]; then + info "Podman found 0 running containers. Check with 'podman ps'" + else + ok "Podman containers running: ${running}" + fi + + if [[ "${unhealthy}" -gt 0 ]]; then + warn "Podman unhealthy containers: ${unhealthy}" + fi else - warn "podman installed but not working" + warn "Podman installed but not working" fi else - ignore "podman not installed" + ignore "Podman not installed" fi # ---------------- KUBERNETES ---------------- From 8f4616646a17ef740b78c5362eb6f2d9bfcdd72b Mon Sep 17 00:00:00 2001 From: Knuspii <220954979+Knuspii@users.noreply.github.com> Date: Thu, 8 Oct 2026 19:55:46 +0000 Subject: [PATCH 2/4] docsify test --- docs/.nojekyll | 0 docs/README.md | 29 +++++++++++++++++++++++++++++ docs/index.html | 22 ++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 docs/.nojekyll create mode 100644 docs/README.md create mode 100644 docs/index.html diff --git a/docs/.nojekyll b/docs/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..f5d6e77 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,29 @@ +

+ Bash + Build + GitHub Stars +
+ +

+ +
+ Preview +
+
+ +You quickly wanna check your server, but don't want to use 10+ tools to check everything? \ +Well this script will help you with checking the most important things. + +## Supports +- Checks: CPU, RAM, Disk +- Checks: DNS, NTP, Firewall, Open-Ports +- Checks: Smartctl, RAID, ZFS +- Checks: Package-Updates, Journalctl logsize +- Checks: Systemd-Services +- Checks: Docker, Podman, Kubernetes + +## 📥 How to install: +Latest Release: +```bash +curl -L https://github.com/Knuspii/Server-VibeCheck/releases/latest/download/server-vibecheck.sh -o svc && sudo install -m 755 svc /usr/local/bin/server-vibecheck && rm svc +``` diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..4d4700d --- /dev/null +++ b/docs/index.html @@ -0,0 +1,22 @@ + + + + + Document + + + + + + +
+ + + + + From c5dc29d73b5ef85c9a5798c56f3894c0b7023d26 Mon Sep 17 00:00:00 2001 From: Knuspii <220954979+Knuspii@users.noreply.github.com> Date: Thu, 8 Oct 2026 22:00:00 +0200 Subject: [PATCH 3/4] Delete docs directory --- docs/.nojekyll | 0 docs/README.md | 29 ----------------------------- docs/index.html | 22 ---------------------- 3 files changed, 51 deletions(-) delete mode 100644 docs/.nojekyll delete mode 100644 docs/README.md delete mode 100644 docs/index.html diff --git a/docs/.nojekyll b/docs/.nojekyll deleted file mode 100644 index e69de29..0000000 diff --git a/docs/README.md b/docs/README.md deleted file mode 100644 index f5d6e77..0000000 --- a/docs/README.md +++ /dev/null @@ -1,29 +0,0 @@ -

- Bash - Build - GitHub Stars -
- -

- -
- Preview -
-
- -You quickly wanna check your server, but don't want to use 10+ tools to check everything? \ -Well this script will help you with checking the most important things. - -## Supports -- Checks: CPU, RAM, Disk -- Checks: DNS, NTP, Firewall, Open-Ports -- Checks: Smartctl, RAID, ZFS -- Checks: Package-Updates, Journalctl logsize -- Checks: Systemd-Services -- Checks: Docker, Podman, Kubernetes - -## 📥 How to install: -Latest Release: -```bash -curl -L https://github.com/Knuspii/Server-VibeCheck/releases/latest/download/server-vibecheck.sh -o svc && sudo install -m 755 svc /usr/local/bin/server-vibecheck && rm svc -``` diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 4d4700d..0000000 --- a/docs/index.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - Document - - - - - - -
- - - - - From c8883b5ef4bf7ab3f1c058f98b524bff45067180 Mon Sep 17 00:00:00 2001 From: Knuspii <220954979+Knuspii@users.noreply.github.com> Date: Fri, 9 Oct 2026 08:53:48 +0200 Subject: [PATCH 4/4] Added Site --- index.html | 245 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 245 insertions(+) create mode 100644 index.html diff --git a/index.html b/index.html new file mode 100644 index 0000000..4f57306 --- /dev/null +++ b/index.html @@ -0,0 +1,245 @@ + + + + + + + + Server-VibeCheck + + + +
+ + +

Server-VibeCheck

+ Bash + GitHub Stars +

Check your server. Keep the vibe.

+ View on GitHub ↗ + +

INSTALLATION

+
+ +
curl -L https://github.com/Knuspii/Server-VibeCheck/releases/latest/download/server-vibecheck.sh -o svc && sudo install -m 755 svc /usr/local/bin/server-vibecheck && rm svc
+
+ +
+ + +