Académique Documents
Professionnel Documents
Culture Documents
Target Audience
This document is designed for Nagios administrators interested in integrating Selenium web testing into Nagios XI.
Prerequisites
The following are basic prerequisites required for using Selenium. They will be gone over in their respective sections with brief guides
on installation.
Web: www.nagios.com
Email: sales@nagios.com
Page 1
Copyright 2010-2011 Nagios Enterprises, LLC
Revision 1.0 October, 2013
Web: www.nagios.com
Email: sales@nagios.com
Page 2
Copyright 2010-2011 Nagios Enterprises, LLC
Revision 1.0 October, 2013
A few modules do not correctly install via CPAN so we must install them by hand:
wget http://assets.nagios.com/downloads/nagiosxi/packages/Test-Mock-LWP-0.06.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/packages/Test-WWW-Selenium-1.36.tar.gz
wget http://assets.nagios.com/downloads/nagiosxi/packages/Time.tar
tar -zxf Test-WWW-Selenium-1.36.tar.gz
cd Test-WWW-Selenium-1.36
perl Makefile.PL
make
make test
make install
cd ../
And then the second file:
tar -xf Time.tar
cd TimePerf2
perl Makefile.PL
make
make test
make install
cd ../
Web: www.nagios.com
Email: sales@nagios.com
Page 3
Copyright 2010-2011 Nagios Enterprises, LLC
Revision 1.0 October, 2013
These values will undoubtedly be different for your situation based on which ports you use for traffic, the default port for instance is
4444 but for documentation 5555 was chosen , the default browser is chrome, which is not Google Chrome but a special version of
Firefox, we will be using Firefox so that must be changed accordingly.
Write and quit simpletest:
Web: www.nagios.com
Email: sales@nagios.com
Page 4
Copyright 2010-2011 Nagios Enterprises, LLC
Revision 1.0 October, 2013
Web: www.nagios.com
Email: sales@nagios.com
Page 5
Copyright 2010-2011 Nagios Enterprises, LLC
Revision 1.0 October, 2013
Now while still in the Core Config Manager select Services from the Monitoring drop down on the left side and click Add New.
From the Common Settings tab we will fill in the boxes with the following:
Config Name* Box:
Selenium Nagios
(Note: You can chose a name to match your
requirements)
Hosts* Box:
Select the Host on which the Selenium Server is running, for
the purposes of this document the Fedora 17 Host will be
selected.
Web: www.nagios.com
Email: sales@nagios.com
Page 6
Copyright 2010-2011 Nagios Enterprises, LLC
Revision 1.0 October, 2013
For any support related questions please visit the Nagios Support Forums at:
http://support.nagios.com/forum/
Web: www.nagios.com
Email: sales@nagios.com
Page 7
Copyright 2010-2011 Nagios Enterprises, LLC
Revision 1.0 October, 2013