Raspberry Pi Shutdown via ethernet command

I have a CyberPower BR850ELCD UPS which is connected to my QNAP TS453Be NAS via USB and has the capability of notifying other IP addresses when there has been a power failure.

Is it possible to notify my Raspberry Pi and Tinkerboard, by their IP addresses, when such a command has been sent by the NAS to then shut them down in the event of a power failure?

Thanks…

I wonder if this would help
http://www.apcupsd.org/

About

Apcupsd can be used for power mangement and controlling most of APC’s UPS models on Unix and Windows machines. Apcupsd works with most of APC’s Smart-UPS models as well as most simple signalling models such a Back-UPS, and BackUPS-Office. During a power failure, apcupsd will inform the users about the power failure and that a shutdown may occur. If power is not restored, a system shutdown will follow when the battery is exhausted, a timeout (seconds) expires, or runtime expires based on internal APC calculations determined by power consumption rates. Apcupsd is licensed under the GPL version 2.

Perhaps the Network Utility of your UPS

Found this too

This too
https://www.reddit.com/r/homelab/comments/4bfv16/cyberpower_ups_and_shutting_down_esxi_and_unraid/

I have also suffered from the same issue and I have studied a lot in this matter on the Internet, but, finally, when I consulted with Fix Windows update error code 8007000e , all the problems were really solved.