sensu-plugins-windows 2.4.0 → 2.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 332df61e90523efd8eae7028b67eb1ac24cb2a9967bf4cf91cb0b66217b77a9c
4
- data.tar.gz: 4072951c9b8d06b46594caa7cfad2963141a6c65d16d90a2b907e47993c06574
3
+ metadata.gz: a05a53bf4d4706950885c653e95be233b03e1387a50140168b653ee7f11f5be7
4
+ data.tar.gz: 8fe205f323f82467bfa279bbee49b0a5782604036878121d8c90151b7c822ddb
5
5
  SHA512:
6
- metadata.gz: 5c22e88ad3d4787160b46873757f409d5de889c0df6d52a642875e3a488b130444631e9d097b11e621470ef329035e0c1ee4b43f207f3a5b6ee99b555e5a2763
7
- data.tar.gz: 559b9a105815e6cc2a3936def45d36618556bba60c482eda82c77b1c70745a751ece635b018b667004b7c28a034a09d30b91d5a57cd7044f044911a9a2fda5c0
6
+ metadata.gz: 6f44bf082b8359dba09a51dbf2b8e95b9a63ecfa06d5481b8d0ff11fbeacf47eb0e6e7297f2e28ca1812a1c99fe30a432dd25eaecb825b2414d1eeac8f25c353
7
+ data.tar.gz: e7ed2a21320d68e373ac6a52fe7a23b1f92baaf4d9afc2b5fceed253039617f7722d769ceb13042b86dc265fcf1fd6ba5c4ef17d499b90f62604e67cdc4333f7
@@ -6,6 +6,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ### [2.4.1] - 2018-04-18
10
+ ### Fixed
11
+ - check-windows-http.ps1: fixed typo (@stevebanik-ndsc)
12
+
9
13
  ## [2.4.0] - 2017-12-08
10
14
  ### Added
11
15
  - minimal `appveyor.yml` (@majormoses)
@@ -139,7 +143,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
139
143
  ### Added
140
144
  - Initial release
141
145
 
142
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.4.0...HEAD
146
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.4.1...HEAD
147
+ [2.4.1]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.4.0...2.4.1
143
148
  [2.4.0]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.3.0...2.4.0
144
149
  [2.3.0]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.2.1...2.3.0
145
150
  [2.2.1]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.2.0...2.2.1
@@ -22,9 +22,7 @@
22
22
  # Copyright 2016 sensu-plugins
23
23
  # Released under the same terms as Sensu (the MIT license); see LICENSE for details.
24
24
  #
25
-
26
25
  #Requires -Version 3.0
27
-
28
26
  [CmdletBinding()]
29
27
  Param(
30
28
  [Parameter(Mandatory=$True,Position=1)]
@@ -35,24 +33,24 @@ $ThisProcess = Get-Process -Id $pid
35
33
  $ThisProcess.PriorityClass = "BelowNormal"
36
34
 
37
35
  try {
38
- $Avaliable = Invoke-WebRequest $CheckAddress -ErrorAction SilentlyContinue
36
+ $Available = Invoke-WebRequest $CheckAddress -ErrorAction SilentlyContinue
39
37
  }
40
38
 
41
39
  catch {
42
- $errorandler = $_.Exception.request
40
+ $errorhandler = $_.Exception.request
43
41
  }
44
42
 
45
- if (!$Avaliable) {
43
+ if (!$Available) {
46
44
  Write-Host CRITICAL: Could not connect $CheckAddress!
47
45
  Exit 2
48
46
  }
49
47
 
50
- if ($Avaliable) {
51
- if ($Avaliable.statuscode -eq 200) {
52
- Write-Host OK: $CheckAddress is avaliable!
48
+ if ($Available) {
49
+ if ($Available.statuscode -eq 200) {
50
+ Write-Host OK: $CheckAddress is available!
53
51
  Exit 0
54
52
  } else {
55
- Write-Host CRITICAL: URL $CheckAddress is not accessable!
53
+ Write-Host CRITICAL: URL $CheckAddress is not accessible!
56
54
  Exit 2
57
55
  }
58
56
  }
@@ -2,7 +2,7 @@ module SensuPluginsWindows
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 4
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-windows
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-09 00:00:00.000000000 Z
11
+ date: 2018-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -236,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
236
  version: '0'
237
237
  requirements: []
238
238
  rubyforge_project:
239
- rubygems_version: 2.7.3
239
+ rubygems_version: 2.7.6
240
240
  signing_key:
241
241
  specification_version: 4
242
242
  summary: Sensu plugins for Windows