Newbie to NUT but loving the ability to monitor the UPS backing up my RPi. Pi is model 3B, running Debian 10 (Buster). NUT version 2.7.4-8, was installed from package. Currently have NOTIFYFLAG set for ONLINE and ONBATT. When these events occur, I get both an email and a text message, but I only get the ONLINE message if the UPS returns to line power BEFORE commanding the Pi to shutdown. Once the Pi shuts down (which it does with no problem), when the AC line power is restored to the UPS the Pi boots up, but I don't get any notification that the Pi has RETURNED to online. Would there be a way to have a message that the Pi is once again ONLINE after booting up when power is restored after a shutdown? Thanks very much
Roger Price
2021-Mar-05 16:17 UTC
[Nut-upsuser] Request For Additional Status Confirmation
On Fri, 5 Mar 2021, Jon Kinne via Nut-upsuser wrote:> Would there be a way to have a message that the Pi is once again ONLINE after > booting up when power is restored after a shutdown?upsmon does not have an "on startup" event, so you need to create one, for example a line in crontab with the @reboot prefix which calls a script to read ups.status and send the required email. Roger