Nextcloud Instance

I have a Nextcloud instance installed on a NUC using Ubunto 18.04 ( Works great.

I also have hassio installed in docker, Ubuntu 18.04 on another NUC (
The hassio instance I can monitor the shut down and restart with the following command.
How can I do the same for Nextcloud. Also I would like to be able to track on the Nextcloud NUC disk/memory/temp etc. Have not figured that out.

  - alias: Home Assistant Started
      platform: homeassistant
      event: start
      - service: notify.carlton
          title: "Home Assistant Started"
          message: "Home Assistant Has Restarted"

I have played around with the configuration but can not get it to work.
Any help would be greatly appreciated.