While you can use socket.io for this there may also be a simpler way and that is to just use a post request / cron to check every X minutes if the server is reachable from 'Checking' server (that would just be the server that is doing the check)
So why not use socket.io? Well, without knowing how you node servers are setup, its hard to say if socket.io would be a good fit, this is simply because socket.io uses WSS to connect, so unless you are running it from the browser it will need additional configurations / modules setup on the server to actually use WSS (if you do go this route, you will need socket.io-client module on each system, this is important because this will allow you to connect to the socket.io server, also make sure the version of socket.io matches the socket.io-client build)
All in all, if I was building this out, I would probably just do a simple ping of each server and log it to a DB or what not but your requirements will really dictate the direction you go
Let me describe it as briefly and clearly as possible:
I have 10 different copies of a node JS based program running on 10 different desktops. I want to create a Node JS based (or any other technology) web app deployed on a server which will check if these 10 programs are online or not.
Any suggestions as to how I can implement this?
Note: The node JS based desktop apps are running on electron.
Node JS detect connectivity to all Node JS programs