Page 1 of 1

Check_MK used.mem doesn't calculate buff/cache

Posted: Tue May 23, 2017 8:34 am
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

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

Posted: Tue May 23, 2017 10:48 am
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

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

Posted: Thu Jun 01, 2017 11:58 am
by TempHost
Upgrading to Check_MK Raw resolved our problem.

Thanks for your feedback dwhitfield but we were skeptical of loading unsupported plugins.

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

Posted: Thu Jun 01, 2017 3:13 pm
by tgriep
If you don't have any further questions, shall I lock up the post for you?