Skip to content

check_memory.sh is a bash script for Nagios/Icinga that monitors memory and swap usage on a linux system, providing configurable thresholds for warning and critical alerts.

License

Notifications You must be signed in to change notification settings

tgerov/check_memory.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

check_memory.sh

check_memory.sh is a bash script for Nagios/Icinga that monitors memory and swap usage on a linux system, providing configurable thresholds for warning and critical alerts. The check also outputs performance data in Nagios/Icinga plugin format, providing the actual memory and swap usage percentages.

Usage

./check_memory.sh [-w|-c|-W|-C] -h

Options:
    -w: Set warning percentage for memory usage.
    -c: Set critical percentage for memory usage.
    -W: Set warning percentage for swap usage.
    -C: Set critical percentage for swap usage.
    -h: Print help message.

Example Usage:

[root@devbox ~]# ./check_memory.sh -w 70 -c 90 -W 20 -C 30
OK - Memory: 15/100%, Swap: 3/100%| memory=15%;70;90;0; swap=3%;20;30;0

License

This script is licensed under the GPL-3.0 License. For more details, see LICENSE file.

About

check_memory.sh is a bash script for Nagios/Icinga that monitors memory and swap usage on a linux system, providing configurable thresholds for warning and critical alerts.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages