sensu-plugins-windows 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e217e7e11a7814a8ec55b556f00af0199f1c846cc36ea1cfea79df35e8dd0480
4
- data.tar.gz: 6d671ccec3a4075dfc3d005a22db54bf1a817d9a19c57ad199ac6f000a229012
3
+ metadata.gz: 8d3bc200ad25449a9d7e1fac087b4bcb96b8b1393100dd2b896825b2449f7b55
4
+ data.tar.gz: 2166f8e0369202f5e07fb44d9c22d3cc68f7ad18ba06db7d3b65cbc7ca5e13f5
5
5
  SHA512:
6
- metadata.gz: 8296ad496e9c849a12896992e7fd4fbe2d9c6238c5ad37f7ad611faaa9ed835ca65b8c24169264bdcffed76557d2f47a336ab069595de7f0651863a38c657d64
7
- data.tar.gz: 011523e6be8f7f15735b8de00d7981f7bd5bccf4f63791974b9ae05956cb1c3c5572ebe6a8c99056a5271bf84492f0e118914a485579dc60b492bed7233045f8
6
+ metadata.gz: d9ab726cf9e3899c0a9ae333e98960e41a01b12f4052ebe619f5d23289b80855c6d0cd1a9021ae15581c85d6527711c7f995edf5a2588bcf46bd5857d45289e4
7
+ data.tar.gz: cb9de62ef5cb78102414d512d6a20af564f16084227387bb1d4865969c9306f8fd45370d48fb2d7290ac542eb4cceee58a98e1bff948dc556a795ea47ff4e783
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.8.0] - 2018-05-10
10
+ ### Added
11
+ - check-windows-directory.ps1, added plugin to check if a directory exist (@patricewhite).
12
+
9
13
  ## [2.7.0] - 2018-05-09
10
14
  ### Changed
11
15
  - check-windows-event-log.ps1, added plugin to check for pattern and returns the number criticals and warnings that match that pattern (@patricewhite)
@@ -161,7 +165,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
161
165
  ### Added
162
166
  - Initial release
163
167
 
164
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.7.0...HEAD
168
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.8.0...HEAD
169
+ [2.8.0]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.7.0...2.8.0
165
170
  [2.7.0]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.6.0...2.7.0
166
171
  [2.6.0]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.5.0...2.6.0
167
172
  [2.5.0]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.4.1...2.5.0
data/README.md CHANGED
@@ -46,6 +46,7 @@ These files provide basic Checks and Metrics for a Windows system.
46
46
  * bin/powershell/metric-windows-processor-queue-length.ps1
47
47
  * bin/powershell/metric-windows-ram-usage.ps1
48
48
  * bin/powershell/metric-windows-uptime.ps1
49
+ * bin/powershell/check-windows-directory.ps1
49
50
  * bin/powershell/check-windows-event-log.ps1
50
51
  * bin/powershell/check-windows-log.ps1
51
52
 
@@ -0,0 +1,33 @@
1
+ <#
2
+ .SYNOPSIS
3
+ Checks if directory exist
4
+ .DESCRIPTION
5
+ Checks if directory exist
6
+ .Notes
7
+ FileName : check-windows-directory.ps1
8
+ Author : Patrice White - patrice.white@ge.com
9
+ .LINK
10
+ https://github.com/sensu-plugins/sensu-plugins-windows
11
+ .PARAMETER LogName
12
+ Required. The name of the directory.
13
+ Example -Dir C:\Users\dir
14
+ .EXAMPLE
15
+ powershell.exe -file check-windows-directory.ps1 -Dir C:\Users\dir
16
+ #>
17
+
18
+ [CmdletBinding()]
19
+ Param(
20
+ [Parameter(Mandatory=$True)]
21
+ [string]$Dir
22
+ )
23
+
24
+ $ThisDir = Test-Path -Path $Dir
25
+
26
+ #Shows diretory if it exist
27
+ if ($ThisDir) {
28
+ "CheckDirectory OK: Directory exist"
29
+ EXIT 0
30
+ }else {
31
+ "CheckDirectory CRITICAL: Directory doesn't exist"
32
+ EXIT 2
33
+ }
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsWindows
2
2
  module Version
3
3
  MAJOR = 2
4
- MINOR = 7
4
+ MINOR = 8
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-windows
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
@@ -192,6 +192,7 @@ files:
192
192
  - bin/powershell/check-multi-template/check-processes.ps1
193
193
  - bin/powershell/check-multi-template/check-services.ps1
194
194
  - bin/powershell/check-windows-cpu-load.ps1
195
+ - bin/powershell/check-windows-directory.ps1
195
196
  - bin/powershell/check-windows-disk-writeable.ps1
196
197
  - bin/powershell/check-windows-disk.ps1
197
198
  - bin/powershell/check-windows-event-log.ps1