Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.38 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.38 KB

check_cpu_utilization.ps1.py

Nagios Windows_SSH Monitoring Plugin

DESCRIPTION

  • This plugin monitors the CPU utilization on Windows machines via evaluation of the Process Performce Counters.

    • \Processor(_Total)% User Time
    • \Processor(_Total)% Processor Time
    • \Processor(_Total)% Privileged Time
  • This plugin gives you the CPU Utilization for the system, across all cores.

  • Threshold violations result when a metric value is "equal to or greater than" the thresholds provided.

    • E.g. -warning 10 will need the number of files to be equal to 10 or higher to throw a WARNING.

SYNOPSIS

  • A PowerShell based plugin to check CPU Utilization via Windows Processor Performance Counters

NOTES:

  • This plugin will return performance data.

POWERSHELL PARAMETERS

metric

  • The Processor Metric you would like to evaluate.
    • User = Percent User Time (Default)
    • Proc = Percent Processor Time
    • Priv = Percent Privileged Time

warning

  • The CPU utilization you will tolerate before throwing a WARNING

critical

  • The CPU utilization you will tolerate before throwing a CRITICAL

EMBEDED POWERSHELL EXAMPLES

  • PS> .\check_cpu_utilization.ps1
  • PS> .\check_cpu_utilization.ps1 -metric Proc -warning 80 -critical 90
  • PS> .\check_cpu_utilization.ps1 -metric User -warning 80 -critical 90
  • PS> .\check_cpu_utilization.ps1 -metric Priv -warning 80 -critical 90