Server ping and email sending questions

Asked

Viewed 320 times

-1

I have a need to create a routine that every minute test if the company server is online and if it is not possible to send an email warning the name of the unavailable server and the time.

Another issue, as if the internet falls, the connection will be unavailable, so I would have to have this program running elsewhere?

I’ve been working with Java for a long time, a long time. However if you have something free that I can use, I’m willing to implement.

Thank you. God Bless All

  • It may help you: http://answall.com/a/71387/132

  • In which language?

1 answer

0


One solution is to develop a script that makes requests at a certain time, according to the type of return send the email. For ease, it can be configured as a job in Jenkins.

It is essential that you are on a separate server from which you will test, of course if you are in the same location as the test server, if it crashes you will never receive the email. The problem with running locally is the internet dependency. I mean, can you make sure that there’s Internet locally 24 hours every seven days of the week? So ideally the script should be on a separate server.

Another solution is to use the available services gratuitously on the Internet, such as:
New Relic
Uptime Robot

Although they have some paid Ports, they perfectly meet the requirement of something basic.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.