Yes, you would need to setup another VM for it.
Once you have your selenium server setup you can just follow the guide and it shows you the example of how to use it.
The check_selenium plugin connects to the selenium server over the network and then the selenium server performs the operations.
Let us know if you have any additional questions.
Unable to login via script
-
njain213
Re: Unable to login via script
Hi,
As per above discussion, I have setup two machines one for selenium server and another for nagios server and followed below document.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
1. I got success in step : Adding The Selenium Command To Nagios XI.
2. In step : Adding A Selenium Service To Nagios XI ,there is dependency of manage hosts so before doing this step I went to hosts tab to add new host.
3. I have entered details as you can see attached screenshots and clicked on save button.
4. Now I have clicked on Apply configuration button and getting error "An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint" as shown in screenshot 5 and also find output of /usr/local/nagios/etc/hosts/Jenkins.cfg in screenshot 6.
Could you please tell me the steps that I have to perform to avoid above error?
Also in your document at step "Adding A Selenium Service To Nagios XI", you have mentioned "Click the Manage Host button to select the Host on which
the Selenium Server is running. Click Add Selected and
Close." but before doing this a new host should be available for this to add that is why I am performing step 2.
Thanks
Naman
As per above discussion, I have setup two machines one for selenium server and another for nagios server and followed below document.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
1. I got success in step : Adding The Selenium Command To Nagios XI.
2. In step : Adding A Selenium Service To Nagios XI ,there is dependency of manage hosts so before doing this step I went to hosts tab to add new host.
3. I have entered details as you can see attached screenshots and clicked on save button.
4. Now I have clicked on Apply configuration button and getting error "An error occurred while attempting to apply your configuration to Nagios Core. Monitoring engine configuration files have been rolled back to their last known good checkpoint" as shown in screenshot 5 and also find output of /usr/local/nagios/etc/hosts/Jenkins.cfg in screenshot 6.
Could you please tell me the steps that I have to perform to avoid above error?
Also in your document at step "Adding A Selenium Service To Nagios XI", you have mentioned "Click the Manage Host button to select the Host on which
the Selenium Server is running. Click Add Selected and
Close." but before doing this a new host should be available for this to add that is why I am performing step 2.
Thanks
Naman
You do not have the required permissions to view the files attached to this post.
Last edited by njain213 on Thu May 05, 2016 10:21 am, edited 1 time in total.
-
njain213
Re: Unable to login via script
Another screenshots attached.
You do not have the required permissions to view the files attached to this post.
Re: Unable to login via script
You either need to select a template under Manage Templates on the host that has the check settings setup or click the Check Settings tab and make sure that you have them defined there.
See the entries in RED here for what is required to be defined (either in an applied template or locally on the host check):
https://assets.nagios.com/downloads/nag ... .html#host
You can always take a look at how your other hosts/services are setup.
See the entries in RED here for what is required to be defined (either in an applied template or locally on the host check):
https://assets.nagios.com/downloads/nag ... .html#host
You can always take a look at how your other hosts/services are setup.
-
njain213
Re: Unable to login via script
Thanks I am able to add host now but after completing all steps if I am clicking on services and updating any service it throws errors.
Before updating any service we have to stop anything? Could you please send me the steps for updating services to avoid errors.
Before updating any service we have to stop anything? Could you please send me the steps for updating services to avoid errors.
Re: Unable to login via script
The error in your previous screenshot mentions that the host Jenkins does not have max_check_attempts populated. You'll need to do this in order to be able to Apply Configuration.
If you're seeing another error now, please post a screenshot for us to look at.
If you're seeing another error now, please post a screenshot for us to look at.
Former Nagios Employee
-
njain213
Re: Unable to login via script
Hi Team,
I have couple of issues that I am facing now.Please provide me the solution for below queries:
Issue 1:
I have added checks in GUI and got success in it.
But I am getting critical status when clicking on service detail. However when I am clicking on host detail status is up. Could you please help me how to resolve this issue as everything seems to be fine and still its showing critical.
Issue2:
Also I have added alert settings for auto check after 15 minutes but every time I have to click on "force an immediate check" to check its availability.
Could you please help in sorting out this issue?
Issue 3:
I have recorded all that I want to monitor but when executing command " perl <script name>", sometime I am getting below errors.
ok 5 - click, id=sub
ok 6 - wait_for_page_to_load, 120000
# Error requesting http://10.72.76.43:4444/selenium-server/driver/:
# ERROR: Window does not exist. If this looks like a Selenium bug, make sure to read http://seleniumhq.org/docs/02_selenium_ ... le-windows for potential workarounds.
not ok 7 - select_window, name=Composite_HEC3AAF7FABE71671AE8EF96F0E3675D5
# Failed test 'select_window, name=Composite_HEC3AAF7FABE71671AE8EF96F0E3675D5
* sometimes it got timed out but at time of recording I am not facing any issue.
Issue 4:
Some application requires compatibility settings which which easily add in Internet Explorer but in firefox this is not available so how can we add compatility in it to make every site working.
Thanks
Naman
I have couple of issues that I am facing now.Please provide me the solution for below queries:
Issue 1:
I have added checks in GUI and got success in it.
But I am getting critical status when clicking on service detail. However when I am clicking on host detail status is up. Could you please help me how to resolve this issue as everything seems to be fine and still its showing critical.
Issue2:
Also I have added alert settings for auto check after 15 minutes but every time I have to click on "force an immediate check" to check its availability.
Could you please help in sorting out this issue?
Issue 3:
I have recorded all that I want to monitor but when executing command " perl <script name>", sometime I am getting below errors.
ok 5 - click, id=sub
ok 6 - wait_for_page_to_load, 120000
# Error requesting http://10.72.76.43:4444/selenium-server/driver/:
# ERROR: Window does not exist. If this looks like a Selenium bug, make sure to read http://seleniumhq.org/docs/02_selenium_ ... le-windows for potential workarounds.
not ok 7 - select_window, name=Composite_HEC3AAF7FABE71671AE8EF96F0E3675D5
# Failed test 'select_window, name=Composite_HEC3AAF7FABE71671AE8EF96F0E3675D5
* sometimes it got timed out but at time of recording I am not facing any issue.
Issue 4:
Some application requires compatibility settings which which easily add in Internet Explorer but in firefox this is not available so how can we add compatility in it to make every site working.
Thanks
Naman
You do not have the required permissions to view the files attached to this post.
Re: Unable to login via script
Can you verify the port you need to communicate on is open?njain213 wrote:Could you please help me how to resolve this issue as everything seems to be fine and still its showing critical.
We generally try to keep troubleshoot to one issue per thread so we can stay focused. Please open a new thread for this issue.njain213 wrote:Issue2:
Is this related to the same issue? If not, please see my answer for issue 2.njain213 wrote:Issue 3:
See issue 2.njain213 wrote:Issue 4:
Former Nagios Employee.
me.
me.
-
njain213
Re: Unable to login via script
If port is not open then how script is running successfully. Secondally I am using selenium's default port 4444.