Nagios XI's memory usage high

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
phyo
Posts: 162
Joined: Sun Dec 01, 2013 10:50 pm

Nagios XI's memory usage high

Post by phyo »

Hi all,

We have Nagios XI 2014R1.0 on RHEL 6.5 64 bits. The hardware specification is Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz with 32GB. Now we are monitoring 38 hosts and 370 Services total.

After restart the server, memory usage is around 7%. But after two days, memory usage reached to 95% and CPU usage is around 6%. Is it normal or something wrong with the configuration?

Let me know which configuration need to change.

Thanks.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI's memory usage high

Post by Box293 »

How are you coming up with the memory usage? Service check?

Some screenshots will be helpful.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
phyo
Posts: 162
Joined: Sun Dec 01, 2013 10:50 pm

Re: Nagios XI's memory usage high

Post by phyo »

Box293 wrote:How are you coming up with the memory usage? Service check?
Some screenshots will be helpful.
Hi Box293,

My Nagios system monitor 38 hosts and 370 services now. After one week later, the memory usage of Nagios system reached to 95%.
Here is the screenshot of my Nagios system.
Image

Here is the summary of total host and services.
Image

Thanks.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI's memory usage high

Post by lmiltchev »

Can you show us the actual check that you are running from the command line, along with the output of it? I suspect this is caused by cached memory. Read more about this here:

http://support.nagios.com/wiki/index.ph ... ree_Memory
Be sure to check out our Knowledgebase for helpful articles and solutions!
phyo
Posts: 162
Joined: Sun Dec 01, 2013 10:50 pm

Re: Nagios XI's memory usage high

Post by phyo »

Here is the result from command line check.

Code: Select all

[root@nagios01 libexec]# ./check_snmp_storage_wizard.pl -H 192.168.40.28 -C public -2 -m Physical memory -w 80 -c 95
Physical memory: 95%used(30487MB/32072MB) (>95%) : CRITICAL
[root@nagios01 libexec]#
Here is the top command result on Nagios server.

Code: Select all

top - 10:22:10 up 7 days, 23:34,  1 user,  load average: 0.27, 0.20, 0.18
Tasks: 300 total,   1 running, 299 sleeping,   0 stopped,   0 zombie
Cpu(s):  2.7%us,  0.4%sy,  0.0%ni, 96.9%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:  32841340k total, 31232864k used,  1608476k free,   223016k buffers
Swap:  2097144k total,     1168k used,  2095976k free, 28753080k cached
Am I wrongly use the plugin for nagios server's memory usage?

Thanks.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI's memory usage high

Post by Box293 »

I'm kind of at a loss why you are using an SNMP check for a local check.

Why not try:
http://exchange.nagios.org/directory/Ad ... ck/details
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
phyo
Posts: 162
Joined: Sun Dec 01, 2013 10:50 pm

Re: Nagios XI's memory usage high

Post by phyo »

Box293 wrote:I'm kind of at a loss why you are using an SNMP check for a local check.
Why not try:
http://exchange.nagios.org/directory/Ad ... ck/details
Actually we have 2 nagios servers means one is active and one is standby. That why we use SNMP check.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI's memory usage high

Post by Box293 »

Ahhh that makes sense. In that case I suggest checking by NRPE. Nagios XI actually has the NRPE client installed and listening by default.

You just need to:
  • Edit /etc/xinetd.d/nrpe and add the nagios xi ip address of the other server
    Add the NRPE check definition to /usr/local/nagios/etc/nrpe.cfg for the memory plugin check
    service xinetd restart
    Finally open the port on the firewall
    iptables -I INPUT -p tcp --destination-port 5666 -j ACCEPT
    service iptables save
Thats one way of doing it instead of with SNMP.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
phyo
Posts: 162
Joined: Sun Dec 01, 2013 10:50 pm

Re: Nagios XI's memory usage high

Post by phyo »

This issue has been solved. We used check_snmp_mem.pl plugin to monitor the memory usage of our nagios server.

Thanks.
Locked