PowerShellGSM icon indicating copy to clipboard operation
PowerShellGSM copied to clipboard

add extra monitoring helpers from fork

Open BananaAcid opened this issue 1 year ago • 5 comments

I found these to be useful to monitor the status of the running servers:

https://github.com/Aeneas1/PowerShellGSM/commit/01e8c807ec4ae8046e07e19a068485ee818304b2 https://github.com/Aeneas1/PowerShellGSM/commit/cba08bb95ece29432e7f5dd3e7597235f38b6c15 https://github.com/Aeneas1/PowerShellGSM/commit/77c4d8ce25d9cdde0abbf8e36ca71c4251734df2 https://github.com/Aeneas1/PowerShellGSM/commit/aedbd5013ee87289ab65343d9c8d4b3ce558cf9b

BananaAcid avatar Apr 28 '24 18:04 BananaAcid

oh that is still WIP, but feel free to use what ever you like. my plan is to replace the windows tasks cause a server with 5+ gameserver is not useble, with tasks running every 5min.

Aeneas1 avatar Apr 29 '24 08:04 Aeneas1

nice @Aeneas1

Had a similar thought about replacing tasks und using nssm for adding services (used it in another project as a cheap solution)

What were you thinking about being a solution @Aeneas1

@patrix87 How do you feel about changing / making it an option

BananaAcid avatar Apr 29 '24 15:04 BananaAcid

i will do it with the monitor thread. the monitor will check if the a server is alive, need a update or what ever. so only the monitor is running. then is only 1 windows task needed to check if the monitor is running. i can try to improve the monitor in the next days.

Aeneas1 avatar Apr 29 '24 17:04 Aeneas1

At this point I was thinking about rewritting the whole thing in C# as an application with a single task-scheduler task to check if it's still alive. That application would take care of monitoring everything.

I clearly don't have the time for that right now though.

patrix87 avatar Jun 10 '24 13:06 patrix87

If you do, let a C# service handle the chron jobs, don't use the scheduler.

omayhemo avatar Jun 11 '24 15:06 omayhemo