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 +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +1 -0
- data/bin/powershell/check-windows-directory.ps1 +33 -0
- data/lib/sensu-plugins-windows/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8d3bc200ad25449a9d7e1fac087b4bcb96b8b1393100dd2b896825b2449f7b55
|
|
4
|
+
data.tar.gz: 2166f8e0369202f5e07fb44d9c22d3cc68f7ad18ba06db7d3b65cbc7ca5e13f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
+
}
|
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.
|
|
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
|