thx @Shadow
This will be done in the mentioned next round. Need a time for prepare, tests, finalize another small script, based on upsmon.conf
a) when you will read my research above (it doesn't mater when you use USB/LAN connected UPS), there is still same Synology DRV and MIB for it.
b) you can check your UPS name by
output:
upsc ups@localhost
# For rest of my NASes there is IP adress of my Syno UPS Server (my current setup)
# My plan is, that primary Syno UPS Server will be disabled. Not needed anymore. And all NAS will be connected directly just like NUT client to UPS. This setup is suitable only for LAN UPS connection. For the USB connection is Syno UPS Server OK. My advice for this setup is to change:
Proposed part of code in my solution:
Customized part of code in my solution:
to get +60 seconds for other NASes connected to this Syno UPS Server (shutdown signal handling).
# you can check setup of listening here:
/usr/syno/etc/ups/upsd.conf
1. does your NAS also automatically boot up again when the power is back online after it has been shutdown by this script?
This will be done in the mentioned next round. Need a time for prepare, tests, finalize another small script, based on upsmon.conf
2. How did you leave your UPS settings in the Synology interface? Still like this?
a) when you will read my research above (it doesn't mater when you use USB/LAN connected UPS), there is still same Synology DRV and MIB for it.
b) you can check your UPS name by
Code:
upsc -l
upsc ups@localhost
# For rest of my NASes there is IP adress of my Syno UPS Server (my current setup)
# My plan is, that primary Syno UPS Server will be disabled. Not needed anymore. And all NAS will be connected directly just like NUT client to UPS. This setup is suitable only for LAN UPS connection. For the USB connection is Syno UPS Server OK. My advice for this setup is to change:
Proposed part of code in my solution:
Bash:
#Shutdown action def ("P" for PowerOff; "now" for an immediate action)
SHTD='/usr/sbin/shutdown -P now'
Bash:
#Shutdown action def ("P" for PowerOff; "+60" for delayed action)
SHTD='/usr/sbin/shutdown -P +60'
# you can check setup of listening here:
/usr/syno/etc/ups/upsd.conf