Page 1 of 1
Nagios XI's memory usage high
Posted: Mon Nov 10, 2014 9:07 pm
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.
Re: Nagios XI's memory usage high
Posted: Mon Nov 10, 2014 9:21 pm
by Box293
How are you coming up with the memory usage? Service check?
Some screenshots will be helpful.
Re: Nagios XI's memory usage high
Posted: Tue Nov 11, 2014 5:20 am
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.
Here is the summary of total host and services.
Thanks.
Re: Nagios XI's memory usage high
Posted: Tue Nov 11, 2014 10:53 am
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
Re: Nagios XI's memory usage high
Posted: Tue Nov 11, 2014 9:17 pm
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.
Re: Nagios XI's memory usage high
Posted: Tue Nov 11, 2014 10:25 pm
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
Re: Nagios XI's memory usage high
Posted: Wed Nov 12, 2014 12:55 am
by phyo
Actually we have 2 nagios servers means one is active and one is standby. That why we use SNMP check.
Re: Nagios XI's memory usage high
Posted: Wed Nov 12, 2014 4:41 am
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.
Re: Nagios XI's memory usage high
Posted: Wed Nov 26, 2014 3:25 am
by phyo
This issue has been solved. We used check_snmp_mem.pl plugin to monitor the memory usage of our nagios server.
Thanks.