arkmanager / ark-server-tools

Set of server tools used to manage ARK: Survival Evolved servers on Linux
MIT License
684 stars 144 forks source link

Displaying Port in webhook output like so. #1060

Closed Nytridr closed 4 years ago

Nytridr commented 4 years ago

notifyTemplate="Message from instance {instance} on server cosmicknights.com:{QueryPort} {msg}" Right now this does not work.

What would I need to do to have it display the port also..

klightspeed commented 4 years ago

${ark_QueryPort} (making sure notifyTemplate is after where you define ark_QueryPort)

Nytridr commented 4 years ago

the notifytemplet is in arkmanager config but the ark_queryport is in the instances.. should I put the notify stuff in the instances and take it out of arkmanager.cfg?

Never mind about the above.. Keeping it there in case anyone else looks later..
I left things in arkmanager.cfg and just put what I wanted changed in the instances.. when the server posted it was started and up.. it posted the following.. in the instance notifyMsgServerUp="Server is up cosmicknights.com:${ark_QueryPort}" will post the following Message from instance Valguero on server cosmicknights.com: Server is up cosmicknights.com:27010 so that worked, thank you klightspeed.

and if I wanted to put the full steam connection string like when the server says it has started.. how would that one work?

Nytridr commented 4 years ago

I actually figured that out. I was thinking of somehow importing but then I thought.. I already have it.

The only thing that would ever change if you have DDNS or static IP would be the port.. notifyMsgServerUp="Server steam://connect/cosmicknights.com:${ark_QueryPort} is now up."