Page 1 of 1

Selenium on Nagios

Posted: Thu Dec 19, 2013 4:50 pm
by stuartevansuk
Hi All,

I've following the following guide and have setup CentOS 6 server with Firefox installed and a CentOS 6 server with the free Nagios XI package. When trying to run the selenium test im getting the following error, can anyone help;

http://assets.nagios.com/downloads/nagi ... Nagios.pdf

[root@ip-172-31-34-164 tmp]# perl simpletest
Can't locate Test/More.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/local/share/perl5/Test/WWW/Selenium.pm line 11.
BEGIN failed--compilation aborted at /usr/local/share/perl5/Test/WWW/Selenium.pm line 11.
Compilation failed in require at simpletest line 4.
BEGIN failed--compilation aborted at simpletest line 4.

Re: Selenium on Nagios

Posted: Thu Dec 19, 2013 5:00 pm
by stuartevansuk
Its mentioned on Page 5, it should run through the Selenium test to ensure it runs on the Nagios server I believe;

Now we may test our script:
perl simpletest

Re: Selenium on Nagios

Posted: Thu Dec 19, 2013 5:05 pm
by slansing
Ah apologies, I just ran a quick find on it and saw that. Did you get any output when you ran:

Code: Select all

perl clean_selenium_script –filename=/path/to/simpletest –o=simpletest
Can you try running your script again after you run the following from the CLI:

Code: Select all

cpan

install Test::More

quit

Re: Selenium on Nagios

Posted: Thu Dec 19, 2013 5:17 pm
by stuartevansuk
I think its was my EC2 instance, it didnt have enough memory! it was failing to install WWW::Selenium and all the extra modules... It was getting killed half way through!

Re: Selenium on Nagios

Posted: Thu Dec 19, 2013 5:21 pm
by stuartevansuk
Confirmed, the script now works - t1.micro didnt hacve enough Memory to install the CPAN modules.

Thanks for your help!

Re: Selenium on Nagios

Posted: Thu Dec 19, 2013 6:00 pm
by slansing
Ah! If only perl were more verbose eh? :)