check_memory

command
v0.0.0-...-7d76b79 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

Memory Check

The memory check (check_memory) checks the available memory as reported by the OS. It queries the OS for the amount of available memory, the amount of free memory, then calculates a memory used percentage. That memory used percentage is then compared against the --warning and --critical thresholds and an appropriate check result is output.

Flags

  • --warning: The percentage of used memory required to trigger a warning condition. Default 85.
  • --critical: The percentage of used memory required to trigger a critical condition. Default 95.
  • --metric_name: The name used in the nagios portion of the message output. Default memory_used_percentage.

Examples

Issue a warning if memory usage is over 50% and critical if usage is over the default of 95%.

check_memory --warning 50

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL