Guides‎ > ‎Common Checks‎ > ‎

Memory Usage

Memory Used - Physical

Specific Amount
Check the physical memory usage. Warning alert at 1536M used and critical alert at 1792M used.

NSClient++ 0.3.9 & 0.4.1 - Windows
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckMEM -a ShowAll type=physical MaxWarn=1536M MaxCrit=1792M

Output:
OK: physical memory: 813M|'physical memory %'=39%;24;12 'physical memory'=812.82M;1536;1792;0;2047.49


NSClient++ 0.4.3 onwards - Linux AND Windows
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c Check_Memory -a show-all type=physical 'warning=used>1536M' 'critical=used>1792M'

Output:
physical = 240.234MB|'physical'=0.2346GB;1.5;1.75;0;1.79823 'physical %'=13%;83;97;0;100


Percentage
Check the physical memory usage. Warning alert at 80% usage and critical alert at 90% usage.

NSClient++ 0.3.9 & 0.4.1 - Windows
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckMEM -a ShowAll type=physical MaxWarn=80% MaxCrit=90%

Output:
OK: physical memory: 800M|'physical memory %'=39%;80;90 'physical memory'=799.68M;1637.99;1842.74;0;2047.49


NSClient++ 0.4.3 onwards - Linux AND Windows
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c Check_Memory -a show-all type=physical 'warning=used>80%' 'critical=used>90%'

Output:
physical = 240.141MB|'physical'=0.23451GB;1.43858;1.6184;0;1.79823 'physical %'=13%;79;89;0;100

Memory Free - Physical

Specific Amount
Check the amount of free physical memory. Warning alert at 512M free and critical alert at 256M free.

NSClient++ 0.3.9 & 0.4.1 - Windows
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckMEM -a ShowAll type=physical MinWarn=512M MinCrit=256M

Output:
OK: physical memory: 778M|'physical memory %'=62%;74;87 'physical memory'=778.08M;512;256;0;2047.49


NSClient++ 0.4.3 onwards - Linux AND Windows
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c Check_Memory -a show-all type=physical 'warning=free<512M' 'critical=free<256M'

Output:
physical = 240.422MB|'physical'=1.56344GB;0.5;0.25;0;1.79823 'physical %'=86%;27;13;0;100


Percentage
Check the amount of free physical memory. Warning alert at 20% free and critical alert at 10% free.

NSClient++ 0.3.x & 0.4.x - Windows
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckMEM -a ShowAll type=physical MinWarn=20% MinCrit=10%

Output:
OK: physical memory: 802M|'physical memory %'=61%;20;10 'physical memory'=802.16MB;409.5;204.75;0;2047.49


NSClient++ 0.4.3 onwards - Linux AND Windows
No additional configuration is required
Command:
check_nrpe -H 192.168.142.137 -t 30 -c Check_Memory -a show-all type=physical 'warning=free<20%' 'critical=free<10%'

Output:
physical = 240.523MB|'physical'=1.56334GB;0.35964;0.17982;0;1.79823 'physical %'=86%;19;9;0;100

ShowAll=long (Windows)

You can also expand the amount of information shown in the status output (everything to the left of the | pipe) by using ShowAll=long.

Command:
check_nrpe -H 192.168.142.137 -t 30 -c CheckMEM -a ShowAll=long type=physical MaxWarn=1536M MaxCrit=1792M

Output:
OK: physical memory: Total: 4G - Used: 522M (12%) - Free: 3.49G (88%)|'physical memory %'=12%;62;56 'physical memory'=521.781M;1536;1792;0;4095.488

show-all (Linux And Windows)

In linux this appears to be less about what follows the pipe and more about the status information to the left of the pipe. Windows doesn't seem to make a difference. Examples:

Command Without show-all:
check_nrpe -H centos05 -t 30 -c Check_Memory -a type=physical 'warning=free<20%' 'critical=free<10%'

Output:
OK memory within bounds.|'physical'=1.56328GB;0.35964;0.17982;0;1.79823 'physical %'=86%;19;9;0;100


Command With show-all:
check_nrpe -H centos05 -t 30 -c Check_Memory -a show-all type=physical 'warning=free<20%' 'critical=free<10%'

Output:
physical = 240.586MB|'physical'=1.56328GB;0.35964;0.17982;0;1.79823 'physical %'=86%;19;9;0;100