Synthetic website monitoring is often on the wish list on what to add to the existing monitoring. It does however require that you setup additional infrastructure to handle the testing and reporting of check results back to the monitoring solution.
With this in mind we developed a Nagios plugin, check_selenium_docker, that spins up a Docker container, executes the test and once it’s finished and the result has been reported back to the monitoring solution, cleans up by removing the Docker container.
The easy management part consists of the containerization of Selenium which leads to less dependencies. The only thing you need in order to use our plugin is docker-ce, our docker image and a recorded Selenium test scenario. We achieve high predictability by utilizing a containerized standalone Selenium server that is exactly the same every time the test is executed.
This solution works for any Nagios compatible system such as ITRS OP5 Monitor, Icinga2 or Nagios.
check_selenium_docker is available on github, try it out and tell us what you think!
If you need any help, please get in touch.