sensu-plugins-windows 2.8.0 → 2.8.1

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: 8d3bc200ad25449a9d7e1fac087b4bcb96b8b1393100dd2b896825b2449f7b55
4
- data.tar.gz: 2166f8e0369202f5e07fb44d9c22d3cc68f7ad18ba06db7d3b65cbc7ca5e13f5
3
+ metadata.gz: fd3a4098e6f25922041cfc0088356532f8fd9ec82d4956339eb965589bdd302d
4
+ data.tar.gz: 4d2456754b19b5a0b43bc678238a35a814d1a1679b09ef8bd10aadaf85387c7a
5
5
  SHA512:
6
- metadata.gz: d9ab726cf9e3899c0a9ae333e98960e41a01b12f4052ebe619f5d23289b80855c6d0cd1a9021ae15581c85d6527711c7f995edf5a2588bcf46bd5857d45289e4
7
- data.tar.gz: cb9de62ef5cb78102414d512d6a20af564f16084227387bb1d4865969c9306f8fd45370d48fb2d7290ac542eb4cceee58a98e1bff948dc556a795ea47ff4e783
6
+ metadata.gz: f7d43a06188becca9a6c78dc8b8fe97f851315f420c96061eda6b0c56c307242ba88ed27c1d096dda203594179fa38041f415fa23fe4014a5e973bdeffd47e0c
7
+ data.tar.gz: 26923d79d21852022ec4cd939aa5178180c8d37e76d6510a71829219dafe1e34e554a2df6813d36219f26b84fc58f9a9f8a13c6d995b38303f6bda170c1641f9
data/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [2.8.1] - 2018-07-19
10
+ ### Fixed
11
+ - metric-windows-cpu-load.ps1: report the correct metric value for interrupts (@makaveli0129)
12
+ - metric-windows-disk.ps1: fix typo that prevented disk queue length to be reported properly (@makaveli0129)
13
+
9
14
  ## [2.8.0] - 2018-05-10
10
15
  ### Added
11
16
  - check-windows-directory.ps1, added plugin to check if a directory exist (@patricewhite).
@@ -165,7 +170,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
165
170
  ### Added
166
171
  - Initial release
167
172
 
168
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.8.0...HEAD
173
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.8.1...HEAD
174
+ [2.8.1]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.8.0...2.8.1
169
175
  [2.8.0]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.7.0...2.8.0
170
176
  [2.7.0]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.6.0...2.7.0
171
177
  [2.6.0]: https://github.com/sensu-plugins/sensu-plugins-Windows/compare/2.5.0...2.6.0
@@ -59,6 +59,6 @@ $Time = DateTimeToUnixTimestamp -DateTime (Get-Date)
59
59
  if ($counter -eq '% Processor Time') { Write-Host "$Path.cpu.percent.total $value $Time" }
60
60
  if ($counter -eq '% Idle Time') { Write-Host "$Path.cpu.percent.idle $value $Time" }
61
61
  if ($counter -eq '% User Time') { Write-Host "$Path.cpu.percent.user $value $Time" }
62
- if ($counter -eq '% Interrupt Time') { Write-Host "$Path.cpu.percent.user $value $Time" }
62
+ if ($counter -eq '% Interrupt Time') { Write-Host "$Path.cpu.percent.interrupt $value $Time" }
63
63
 
64
- }
64
+ }
@@ -53,7 +53,7 @@ $localizedCategoryName = Get-PerformanceCounterLocalName -ID $perfCategoryID
53
53
  foreach ($ObjDisk in (Get-Counter -Counter "\$localizedCategoryName(*)\*").CounterSamples) {
54
54
 
55
55
  if ($instances.ContainsKey($ObjDisk.InstanceName) -eq $false) {
56
-
56
+
57
57
  if ($ObjDisk.InstanceName.ToLower() -ne '_total') {
58
58
  $disk = $ObjDisk.InstanceName
59
59
  $disk = $disk.Remove(0,1)
@@ -61,9 +61,9 @@ foreach ($ObjDisk in (Get-Counter -Counter "\$localizedCategoryName(*)\*").Count
61
61
  $disk = $disk.Trim()
62
62
  $instances.Add($ObjDisk.InstanceName,$disk.toUpper())
63
63
  }
64
-
64
+
65
65
  }
66
-
66
+
67
67
  }
68
68
 
69
69
  foreach ($diskkey in $instances.Keys) {
@@ -82,10 +82,8 @@ foreach ($diskkey in $instances.Keys) {
82
82
  if ($counter -eq 'Avg. Disk Bytes/Write') { Write-Host "$Path.disk.iostat.$diskname.write_bytes $value $Time" }
83
83
  if ($counter -eq 'Avg. Disk sec/Read') { Write-Host "$Path.disk.iostat.$diskname.read_await $value $Time" }
84
84
  if ($counter -eq 'Avg. Disk sec/Write') { Write-Host "$Path.disk.iostat.$diskname.write_await $value $Time" }
85
- if ($counter -eq 'Current Disk Queue Length') { Write-Host "$Path.disk.iostat.$diskname.queue_lenght $value $Time" }
85
+ if ($counter -eq 'Current Disk Queue Length') { Write-Host "$Path.disk.iostat.$diskname.queue_length $value $Time" }
86
86
 
87
87
  }
88
88
 
89
89
  }
90
-
91
-
@@ -2,7 +2,7 @@ module SensuPluginsWindows
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 8
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.8.0
4
+ version: 2.8.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: 2018-05-10 00:00:00.000000000 Z
11
+ date: 2018-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
241
  version: '0'
242
242
  requirements: []
243
243
  rubyforge_project:
244
- rubygems_version: 2.7.6
244
+ rubygems_version: 2.7.7
245
245
  signing_key:
246
246
  specification_version: 4
247
247
  summary: Sensu plugins for Windows