Memcache vs the Memory Usage monitor

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
InscrutableDude
Posts: 47
Joined: Mon Mar 27, 2017 10:19 am

Memcache vs the Memory Usage monitor

Post by InscrutableDude »

I have a question. Several of our servers use memcache. Is there a way to make the Memory Usage monitor look at %commit instead of memory used? Since most of the ram is used by cache, it means that on a server with 14GB of RAM, about 800MB is technically "free", which generates critical alerts.

Thanks!
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: Memcache vs the Memory Usage monitor

Post by tacolover101 »

it really depends based on the plugin you're using to check memory. what one is it? probably worth looking at the help menu to see if there's a flag to specify.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Memcache vs the Memory Usage monitor

Post by dwhitfield »

If you aren't using something that comes with XI by default, can you please share a link to the code for the plugin or just attach the plugin? Thanks!
InscrutableDude
Posts: 47
Joined: Mon Mar 27, 2017 10:19 am

Re: Memcache vs the Memory Usage monitor

Post by InscrutableDude »

Sorry for the late reply, I got pulled onto multiple other projects.

I have no custom stuff installed at all. The is the basic Memory Usage monitor that comes with NRPE.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Memcache vs the Memory Usage monitor

Post by dwhitfield »

I'm not aware or a way to do anything with %commit in the standard install, but it looks like https://exchange.nagios.org/directory/P ... ce/details could easily be modified to get the %commit info from sar.

Are you using a different tool other than sar to get that %commit info?
InscrutableDude
Posts: 47
Joined: Mon Mar 27, 2017 10:19 am

Re: Memcache vs the Memory Usage monitor

Post by InscrutableDude »

I'm not currently using SAR on that server, but it's the idea that I was trying to convey. When looking at SAR output, you see the difference between "Usage" and ACTUAL usage.

Let me know if there's a way to get similar info, I'm not tied specifically to %commit.

I'll check that doc you referenced and see if that will work for me. I'll update here asap. Thanks!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Memcache vs the Memory Usage monitor

Post by tgriep »

To get what you are looking for, you would have to install another plugin on the remote server or see if there is a plugin that used SNMP and enable SNMP on the remote server.
Have you searched the exchange site for a plugin that will work for you?
https://exchange.nagios.org/
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked