···11+name: Test
22+on:
33+ push:
44+ branches:
55+ - main
66+ pull_request:
77+jobs:
88+ test:
99+ runs-on: ubuntu-latest
1010+ steps:
1111+ - uses: actions/checkout@v4
1212+ - uses: actions/setup-go@v5
1313+ with:
1414+ go-version: "stable"
1515+ - run: go test -cover ./...
+27
.gitignore
···11+# If you prefer the allow list template instead of the deny list, see community template:
22+# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
33+#
44+# Binaries for programs and plugins
55+*.exe
66+*.exe~
77+*.dll
88+*.so
99+*.dylib
1010+servmon-bin
1111+1212+# Test binary, built with `go test -c`
1313+*.test
1414+1515+# Output of the go coverage tool, specifically when used with LiteIDE
1616+*.out
1717+1818+# Dependency directories (remove the comment below to include it)
1919+# vendor/
2020+2121+# Go workspace file
2222+go.work
2323+go.work.sum
2424+2525+# env file
2626+.env
2727+.servmon.yaml
+21
LICENSE
···11+MIT License
22+33+Copyright (c) 2025 Julien Robert
44+55+Permission is hereby granted, free of charge, to any person obtaining a copy
66+of this software and associated documentation files (the "Software"), to deal
77+in the Software without restriction, including without limitation the rights
88+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99+copies of the Software, and to permit persons to whom the Software is
1010+furnished to do so, subject to the following conditions:
1111+1212+The above copyright notice and this permission notice shall be included in all
1313+copies or substantial portions of the Software.
1414+1515+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121+SOFTWARE.
+9
Makefile
···11+#!/usr/bin/make -f
22+33+PWD=$(shell pwd)
44+55+build:
66+ go build -o servmon-bin .
77+88+install:
99+ go install .
+23
README.md
···11+# Servmond
22+33+KISS server monitoring tool with email alerts.
44+55+Monitors:
66+77+- [x] CPU
88+- [x] Memory
99+- [x] HTTP Health check
1010+- [ ] Disk
1111+- [ ] Docker
1212+1313+## Installation
1414+1515+```bash
1616+go install github.com/julienrbrt/servmon@latest
1717+```
1818+1919+## How to use
2020+2121+```bash
2222+servmon --help
2323+```