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 +4 -4
- data/CHANGELOG.md +6 -1
- data/bin/powershell/check-windows-http.ps1 +7 -9
- data/lib/sensu-plugins-windows/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a05a53bf4d4706950885c653e95be233b03e1387a50140168b653ee7f11f5be7
|
4
|
+
data.tar.gz: 8fe205f323f82467bfa279bbee49b0a5782604036878121d8c90151b7c822ddb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f44bf082b8359dba09a51dbf2b8e95b9a63ecfa06d5481b8d0ff11fbeacf47eb0e6e7297f2e28ca1812a1c99fe30a432dd25eaecb825b2414d1eeac8f25c353
|
7
|
+
data.tar.gz: e7ed2a21320d68e373ac6a52fe7a23b1f92baaf4d9afc2b5fceed253039617f7722d769ceb13042b86dc265fcf1fd6ba5c4ef17d499b90f62604e67cdc4333f7
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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
|
-
$
|
36
|
+
$Available = Invoke-WebRequest $CheckAddress -ErrorAction SilentlyContinue
|
39
37
|
}
|
40
38
|
|
41
39
|
catch {
|
42
|
-
$
|
40
|
+
$errorhandler = $_.Exception.request
|
43
41
|
}
|
44
42
|
|
45
|
-
if (!$
|
43
|
+
if (!$Available) {
|
46
44
|
Write-Host CRITICAL: Could not connect $CheckAddress!
|
47
45
|
Exit 2
|
48
46
|
}
|
49
47
|
|
50
|
-
if ($
|
51
|
-
if ($
|
52
|
-
Write-Host OK: $CheckAddress is
|
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
|
53
|
+
Write-Host CRITICAL: URL $CheckAddress is not accessible!
|
56
54
|
Exit 2
|
57
55
|
}
|
58
56
|
}
|
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.
|
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:
|
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.
|
239
|
+
rubygems_version: 2.7.6
|
240
240
|
signing_key:
|
241
241
|
specification_version: 4
|
242
242
|
summary: Sensu plugins for Windows
|