Remotely Shutting down Freepbx server

My UPS is connected to my NAS and not my free ppx server. I want to be able to shut down the free freepbx when the nas determines there is no power.

I have two choices
1)Unstall upsmon on the freepox box and have it poll the UPS
2)Have the synology nas issue a single command to shutdown

Is there a good way to shutdown the free pbx server remotely or would it be just the normal linux commands to ssh in?