Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use Jenkins to test to see if a VM(server) is up and running?

Can I use Jenkins to test to see if a VM(server) is up and running? We have alot of VMs(servers) with JBoss, LDAP, MySQL etc on them and I would like to know if I can somehow have Jenkins ping a server to see if the SA shut it down or something..

I was thinking of using a selenium test. I was going to have a Maven project with a selenium java test in it to check of the server is up. but how can I tell Jenkins to run the test every hour and do you think this is the right way to go?

like image 594
techsjs2012 Avatar asked Jan 14 '23 11:01

techsjs2012


1 Answers

I would say the simplest possible solution is to use Site Monitor plug-in.

It is simple, reliable and it also allows to reuse build status notifications, provided by your jenkins instance. The only limitation is you should have some http server up and running, but I bet you have at least default page available.

enter image description here

Configuration is simple:

enter image description here

like image 113
Renat Gilmanov Avatar answered Jan 22 '23 05:01

Renat Gilmanov