

6·
19 hours agoI had electric outage for 4 hours, nobody in my userbase saw the difference, but I never managed to make my debian detect the outage so I can get a mail about the fact that there is an outage (I’m not always home).
Btw if anyone here knows how detect them outages with ups plugged in with usb on my server it would be amazing !


yes I already have it and everything is detected but I can’t manage to trigger a bash script for sending mail notification when ups state change, or ups outage event, etc (mail script works fine when simply triggered)
But thanks I found this page may be useful and more specifically this one, I’ll keep these comments updated if I did it ! ╰(▔∀▔)╯