Select Supported Platforms

Select Supported Architectures

Select Tier

Github Name


v3.0.3 · public · Published about 1 year ago

README
Asset Definition
Release Notes
Release Assets

Sensu-Plugins-Windows

Build Status
Gem Version
Appveyor status
Community Slack

Functionality

Sensu Go Bonsai

These files provide basic Checks and Metrics for a Windows system.

Files

Powershell

  • bin/check-windows-cpu-load.ps1
  • bin/check-windows-disk.ps1
  • bin/check-windows-disk-writeable.ps1
  • bin/check-windows-pagefile.ps1
  • bin/check-windows-process.ps1
  • bin/check-windows-processor-queue-length.ps1
  • bin/check-windows-ram.ps1
  • bin/check-windows-service.ps1
  • bin/metric-windows-cpu-load.ps1
  • bin/metric-windows-disk-usage.ps1
  • bin/metric-windows-network.ps1
  • bin/metric-windows-processor-queue-length.ps1
  • bin/metric-windows-ram-usage.ps1
  • bin/metric-windows-uptime.ps1
  • bin/check-windows-directory.ps1
  • bin/check-windows-event-log.ps1
  • bin/check-windows-log.ps1

Ruby -NOT TESTED-

  • bin/check-windows-cpu-load.rb
  • bin/check-windows-disk.rb
  • bin/check-windows-process.rb
  • bin/check-windows-processor-queue-length.rb
  • bin/check-windows-ram.rb
  • bin/check-windows-service.rb
  • bin/metric-windows-cpu-load.rb
  • bin/metric-windows-disk-usage.rb
  • bin/metric-windows-network.rb
  • bin/metric-windows-processor-queue-length.rb
  • bin/metric-windows-ram-usage.rb
  • bin/metric-windows-uptime.rb
  • bin/powershell_helper.rb

Usage

Example 1:

Check Definition

{
  "type": "CheckConfig",
  "api_version": "core/v2",
  "metadata": {
    "namespace": "default",
    "name": "win-cpu-check"
  },
  "spec": {
    "command": "powershell.exe -ExecutionPolicy ByPass -C check-windows-cpu-load.ps1 90 95",
    "subscriptions": [
      "windows"
    ],
    "handlers": [
      "slack",
      "email"
    ],
    "runtime_assets": [
      "sensu-plugins-windows"
    ],
    "interval": 60,
    "publish": true
  }
}

Asset Definition

{
  "type": "Asset",
  "api_version": "core/v2",
  "metadata": {
    "name": "sensu-plugins-windows",
    "namespace": "default",
    "labels": {},
    "annotations": {}
  },
  "spec": {
    "url": "http://example/assets/asset.tar.gz",
    "sha512": "7478720b02451aedc2",
    "filters": [
      "entity.system.os == 'windows'",
      "entity.system.arch == 'amd64'"
    ]
  }
}

Dependencies

  • Powershell checks require Powershell version 3.0 or higher.

Troubleshooting

  • Failures to pull counter data with messages like below, might be due to corrupt performance counters. See Here for more information. Short answer on fix is lodctr /R in an Admin elevated command prompt

Installation

TO DO

Are you sure you want to report this asset?

Please describe the reason for reporting this asset. Our moderators will be notified and will disable the asset if it is found to be inappropriate.

×

You must be signed in to report this asset.

Sign In with Github

Download

×

Either download the source code:

Download Source

Or download the asset definition: