Sign inSign up

wallaceer/tuxbashsysmonitor

By wallaceer

Updated about 1 month ago

A simple Bash script that monitors server reasources and sends an email alert.

Image
Monitoring & observability
0

206

wallaceer/tuxbashsysmonitor repository overview

Build the image:

docker build -t tuxbashsysmonitor . Run the container with the mounted configuration file:

docker run --rm
-v "$PWD/system_monitor.conf:/app/system_monitor.conf:ro"
-v /tmp:/tmp
tuxbashsysmonitor --config /app/system_monitor.conf All SMTP and alert settings are defined in system_monitor.conf; the container does not require SMTP environment variables.

If your SMTP server uses a self-signed certificate or a certificate that does not match the hostname, you can disable certificate validation for testing by adding this line to system_monitor.conf:

SMTP_TLS_CERTCHECK=off Alternatively use docker-compose:

docker compose up --build The container runs system_monitor.sh and uses the mounted system_monitor.conf file.

Tag summary

Content type

Image

Digest

sha256:68417df3b

Size

28.6 MB

Last updated

about 1 month ago

docker pull wallaceer/tuxbashsysmonitor:3.1.2