Skip to content

Monitor Command

Robomikel edited this page Apr 11, 2023 · 10 revisions

The Monitor Command will check to see if the server process is running. ./ssm monitor <serverFolder> or ./ssm monitor insserver. This is good for testing the command or just to see how it works. Checks to see if server is running, if not will start the server and send a discord alert.

The install-monitor command will actually install a scheduled task that uses the monitor command. ./ssm install-monitor <ServerFolder> or ./ssm install-monitor sdtdserver. You will have the option to run a task when the user is logged in or not. The task is set to run every 5 minutes.

Selecting the Default N. Will run task in the foreground. This means you will see a PowerShell window pop open every 5 minutes and will not run if you log out or not logged in.

Selecting Y. Will prompt for a Username and Password for the user that is currently logged in to install scheduled task. It will run the server in the background whether user is logged in or not. Recommend creating a normal user account to run SSM

user accounts will need to be in "logon as batch" job group

gamedig Query server after process check

  • Will restart if it cannot query the server. Will install Gamedig(NodeJS) portable if not installed on the machine. Enable $monquery = 'on' in local_settings.ps1 to add gamedig query to monitor check.Test Monitor Query with ./ssm query <serverfolder> before using. Wiki

❗ Query server: PS 7 Recommend using NodeJS 12 LTS Program installer and not portable