Check_MK used.mem doesn't calculate buff/cache

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
TempHost
Posts: 2
Joined: Tue May 23, 2017 8:22 am

Check_MK used.mem doesn't calculate buff/cache

Post by TempHost »

I was told by the Support Staff to post here, hopefully someone will be able to point me in the right direction.

Currently, our organization is monitoring our servers with Check_MK.

Specifically regarding the mem.used check, it doesn't use the buff/cache field to calculate used memory. So instead of [Used memory = Total Memory - Free Memory - Buff/Cache Memory] it's only doing [Used memory = Total Memory - Free Memory], which causes alerts that the server is almost of out memory since the buff/cache is high on the server.

Hopefully I'm describing this well. If not, take a look here: http://nagios69.rssing.com/browser.php? ... &item=3037

Code: Select all

I did a code rewrite and added a check of "free" version, because since procps-ng 3.3.0+ (RHEL 7+) check_mem.sh doesn't work anymore as it is (buff/cache column)
What would be the best way to remediate this problem?

Thanks,
TempHost
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Check_MK used.mem doesn't calculate buff/cache

Post by dwhitfield »

I am really confused. https://exchange.nagios.org/directory/P ... sh/details says explicitly it addresses your issue. If you don't like that plugin, use a different one: https://exchange.nagios.org/directory/P ... cs/Memory/

You also might want to post an issue on the author's github: https://github.com/zwindler/check_mem_ng/issues
TempHost
Posts: 2
Joined: Tue May 23, 2017 8:22 am

Re: Check_MK used.mem doesn't calculate buff/cache

Post by TempHost »

Upgrading to Check_MK Raw resolved our problem.

Thanks for your feedback dwhitfield but we were skeptical of loading unsupported plugins.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_MK used.mem doesn't calculate buff/cache

Post by tgriep »

If you don't have any further questions, shall I lock up the post for you?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked