How to use selenium with nagios

How to use selenium with nagios_server
1. Install mozilla firefox headless(no GUI)
yum install xorg-x11-server-Xvfb.x86_64 xfonts-base xfonts-75dpi xfonts-100dpi firefox ImageMagick.x86_64
— Starts firefox on virtual gui
DISPLAY=:1 firefox http://google.com &…