UNKNOWN result with SELENIUM perl OK

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

UNKNOWN result with SELENIUM perl OK

Post by dlukinski »

Hello XI Support

We have configured SELENIUM integration (in accordance with your latest manual)
Getting "UNKNOWN" result after running perl script, whihc ends with OK.

There seem to be some issues with interpreting results (as per picture attached)
- please help:

UNKNOWN: ok 1 - open, /share/page/
ok 2 - type, id=page_x002e_components_x002e_slingshot-login_x0023_default-username, nagximon
ok 3 - type, id=page_x002e_components_x002e_slingshot-login_x0023_default-password, C0mplexNagMon123
ok 4 - click, id=page_x002e_components_x002e_slingshot-login_x0023_default-submit-button
ok 5 - wait_for_page_to_load, 30000
ok 6 - click, link=Search
ok 7 - wait_for_page_to_load, 30000
ok 8 - type, id=searchbar, g1702*
ok 9 - click, id=search
ok 10 - click, id=HEADER_USER_MENU_POPUP_text
ok 11 - click, id=HEADER_USER_MENU_LOGOUT_text
ok 12 - wait_for_page_to_load, 30000
1..12
You do not have the required permissions to view the files attached to this post.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: UNKNOWN result with SELENIUM perl OK

Post by mcapra »

That output looks as if the test case wasn't run through the clean_selenium_script script mentioned in the document. The purpose of clean_selenium_script is to format your test case in a way that is readable by Nagios.

Could you post the full test case with sensitive information omitted?
Former Nagios employee
https://www.mcapra.com/
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: UNKNOWN result with SELENIUM perl OK

Post by dlukinski »

mcapra wrote:That output looks as if the test case wasn't run through the clean_selenium_script script mentioned in the document. The purpose of clean_selenium_script is to format your test case in a way that is readable by Nagios.

Could you post the full test case with sensitive information omitted?
You right, I forgot to clean the script: works now.

Please close the case
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: UNKNOWN result with SELENIUM perl OK

Post by mcapra »

Glad to be of assistance! Closing this
Former Nagios employee
https://www.mcapra.com/
Locked