Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added no cache/buffer available/used expressions #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions check_netsnmp_memory.pl
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
'%user_real=user,total_real,%', # Percent user processes take in relation to total real memory (can be >100%)
'%cached_real=cached,total_real,%', # Percent of user disk cache in relation to total real memory
'%buffer_real=buffer,total_real,%', # Percent of buffer memory in relation to total real
"avail_nocache=avail_real,cached,+,buffer,+,round(1),' MB',+", # Free memory discounting cache and buffer
'%avail_nocache=avail_nocache,total_real,%', # Percent of available memory discounting cache and buffer
"used_nocache=total_real,avail_nocache,-,round(1),' MB',+", # Memory in use discounting cache and buffer
'%used_nocache=used_nocache,total_real,%', # Percent of memory in use discounting cache and buffer
);

use lib "/usr/lib/nagios/plugins";
Expand Down