Skip to content

Small wrapper around pct to alert in case an lxc bootsize disk goes above 89%

Notifications You must be signed in to change notification settings

Sonlis/lxc-bootdisk-usage-alerter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lxc-bootdisk-usage-alerter

Small script to throw alerts to gotify in case an lxc bootdisk is above 89%.

It invokes the pct tool, a proxmox wrapper around lxc-container, to get all running lxcs, for each of them gets the memory left on their bootdisk also using pct, and the alert to gotify through HTTP.

Requirements

go

Installation

Build the binary for the desired architecture and operating system:

GOOS=linux GOARCH=amd64 go build # Example for an x86_64 linux machine

Testing

go test ./...

About

Small wrapper around pct to alert in case an lxc bootsize disk goes above 89%

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages