User Activity

Is it possible to ping a server and check if it is up or down using the script snap with some python or js code? How it can be and works?
I have a pipeline that reads two csv files from different servers, i want to put together the data of both csv files into one. I used a union snap to put the data together but if one server is down it’s only going to bring me the data of only one ser...
Kudos given to