Selenium on Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
stuartevansuk
Posts: 5
Joined: Thu Dec 12, 2013 4:56 am

Selenium on Nagios

Post 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.
stuartevansuk
Posts: 5
Joined: Thu Dec 12, 2013 4:56 am

Re: Selenium on Nagios

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Selenium on Nagios

Post 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
stuartevansuk
Posts: 5
Joined: Thu Dec 12, 2013 4:56 am

Re: Selenium on Nagios

Post 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!
stuartevansuk
Posts: 5
Joined: Thu Dec 12, 2013 4:56 am

Re: Selenium on Nagios

Post by stuartevansuk »

Confirmed, the script now works - t1.micro didnt hacve enough Memory to install the CPAN modules.

Thanks for your help!
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Selenium on Nagios

Post by slansing »

Ah! If only perl were more verbose eh? :)
Locked