sumo-check-sumo 0.0.29 → 0.0.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sumo-check-new-relic-apdex.rb +8 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 636061ccb1bcb2eb4cbb9b1784e067a402030399
|
4
|
+
data.tar.gz: 7ea3c27ed58453988ba07648e263c7af45fe05a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 283981a37c0d86c1d4bf633bd199d9c54233ed417ffd110a3dac486b8f2fd07b3405692a1950858945ae9916c2b22d9bdd1b0ee640ac49d9aa095d6d2ec63872
|
7
|
+
data.tar.gz: f782721101b3e9ea632f47490e4a4fb39f25d65776c591589aa798867a6e2bdf212dfee7f5d08fe2b41bc1d0ec93cf37c2c89297c1d8af340642d711fa00c1c9
|
@@ -6,9 +6,9 @@ require 'sensu-plugin/check/cli'
|
|
6
6
|
class SensuSumoNewRelicAppdex < Sensu::Plugin::Check::CLI
|
7
7
|
|
8
8
|
option :server,
|
9
|
-
:short => "-s https://newrelic.com/",
|
10
|
-
:long => "--server https://newrelic.com/",
|
11
|
-
:default => 'https://newrelic.com/',
|
9
|
+
:short => "-s https://rpm.newrelic.com/",
|
10
|
+
:long => "--server https://rpm.newrelic.com/",
|
11
|
+
:default => 'https://rpm.newrelic.com/',
|
12
12
|
:description => "New Relic Site URL"
|
13
13
|
|
14
14
|
option :chromedriver,
|
@@ -66,8 +66,7 @@ class SensuSumoNewRelicAppdex < Sensu::Plugin::Check::CLI
|
|
66
66
|
|
67
67
|
|
68
68
|
def run
|
69
|
-
Selenium::WebDriver::Chrome.driver_path
|
70
|
-
|
69
|
+
Selenium::WebDriver::Chrome::Service.driver_path=config[:chromedriver]
|
71
70
|
|
72
71
|
args = ['--disable-popup-blocking', '--disable-translate','--no-sandbox']
|
73
72
|
if config[:interactive]
|
@@ -75,14 +74,11 @@ class SensuSumoNewRelicAppdex < Sensu::Plugin::Check::CLI
|
|
75
74
|
else
|
76
75
|
browser = Watir::Browser.new :chrome, options: {args: args}, headless: true
|
77
76
|
end
|
78
|
-
|
79
|
-
|
80
|
-
|
77
|
+
|
81
78
|
browser.goto config[:server]
|
82
79
|
|
83
80
|
begin
|
84
|
-
|
85
|
-
browser.link(:id =>"desk-login").click
|
81
|
+
# browser.link(:id =>"desk-login").click
|
86
82
|
browser.element(xpath: "//*[@id=\"login_submit\"]").wait_until_present
|
87
83
|
|
88
84
|
browser.execute_script("
|
@@ -98,6 +94,8 @@ class SensuSumoNewRelicAppdex < Sensu::Plugin::Check::CLI
|
|
98
94
|
browser.element(:xpath => '//*[@id="login_submit"]').click # Click the login button
|
99
95
|
# browser.element(:xpath => '//*[@id="product_sub_nav"]/li[1]/a').wait_until_present
|
100
96
|
browser.goto "https://rpm.newrelic.com/accounts/967440/applications/#{config[:app]}"
|
97
|
+
browser.goto "https://rpm.newrelic.com/accounts/967440/applications/8015924"
|
98
|
+
|
101
99
|
#browser.link(:text =>"SumoMe Production").click
|
102
100
|
|
103
101
|
#browser.link(:text =>config[:app]).click
|