Memory False Alert due to cached by os

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Memory False Alert due to cached by os

Post by axvers »

Hi Support,

We received a lot of "memory usage is critical" alert these days.

And I ssh to the hosts, it seems like that os would temporarily cache available memory as it can.

I want to know what we should do to make Nagios XI skip cache memory?

Could you provide some steps? (maybe like, what plugin we need to change/ how to change the plugin instead of default one.)

target servers:
- os: all CentOS 7, 64-bit

Nagios XI Server:
- os: CentOS 7, 64-bit
- wizard: snmp linux only
- clean Nagios XI environment
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Memory False Alert due to cached by os

Post by scottwilkerson »

If you are setting them up with the Linux Wizard, you can go to the CCM and edit the memory services so the $ARG2$ looks like this adding the -n flag

Code: Select all

-a '-n -w 20 -c 10'
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Re: Memory False Alert due to cached by os

Post by axvers »

Hi Support,

I added '$ARG2$' in '>_commands' in ccm;

and added the '$ARG2$' in the memory check command.

But after clicked the 'Run Check Commnand', it still show physical memory is "Critical".
(Photo1 and 2)
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Memory False Alert due to cached by os

Post by scottwilkerson »

My recommendation was assuming you were using the standard Linux Wizard with an agent.

Unfortunately there is no way to remove the cached memory on the SNMP wizard.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Re: Memory False Alert due to cached by os

Post by axvers »

So, we can't change command (e.g. check_snmp_mem) to resolve this?

if so, we can close this issue, thanks!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Memory False Alert due to cached by os

Post by scottwilkerson »

axvers wrote:So, we can't change command (e.g. check_snmp_mem) to resolve this?

if so, we can close this issue, thanks!
Yes that would work.
e.g.

Code: Select all

/usr/local/nagios/libexec/check_snmp_mem.pl -H 192.168.5.182 -C public -2 -w 80,85 -c 90,95
Ram : 67%, Swap : 24% : ; OK
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked