Page 1 of 1
Memory Usage after Upgrade to 5.7.2
Posted: Wed Jul 22, 2020 7:46 am
by tbarnett
This has been going on with my Nagios server memory usage since I upgraded to 5.7.2.
Memory usage before was in the range of 3gb.
Now as you can see it is all over the place with some drop outs.
Current alarm shows 13 out of 15 gb in use.
nagiosxi.primeinc.com Memory Usage 9h 45m 10s WARNING - 2504 / 15883 MB (15%) Free Memory, Used: 13378 MB, Shared: 1660 MB, Buffers + Cached: 2116 MB
The swap file is using 85% also.
I'm attaching a graph image too.
Re: Memory Usage after Upgrade to 5.7.2
Posted: Wed Jul 22, 2020 5:08 pm
by benjaminsmith
Hi Tom,
Have you had issues receiving notifications or status updates for hosts and services? I'd like to review the system profile on this server to check the logs. You can send it over has private messages since the profile contains private information. Thanks, Benjamin
To send us your system profile.
Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and share in a private message or upload it to the post/ticket, and then reply to this post to bring it up in the queue.
Re: Memory Usage after Upgrade to 5.7.2
Posted: Fri Jul 24, 2020 11:39 am
by benjaminsmith
Hi Tom,
Found a few things in the system profile that will need some corrections. One, there are some crashed database tables, please log in as root to the terminal and run the following command to repair the databases:
Code: Select all
/usr/local/nagiosxi/scripts/repair_databases.sh
NPCD is shutting down. This is the process that handles performance data and graphs.
[07-18-2019 20:45:22] NPCD: Caught Termination Signal - Hasta la vista... baby
Let's log into /usr/local/nagios/etc/pnp/npcd.cfg and decrease the load_threshhold to 50 or 60. The current value is too high and using too much memory, it will take as much as you give it.
The RAMDISK is full, I would increase the size if possible. Take a look at page 6 of the following guide for where to adjust the size.
https://assets.nagios.com/downloads/nag ... giosXI.pdf
Once you make those changes, do a full re-start ( commands below ) and let the system run for while. If you are still having issues, please send a fresh profile again. Thanks, Benjamin
Code: Select all
systemctl stop crond
systemctl stop npcd
systemctl stop nagios
pkill -9 -u nagios
rm -rf /usr/local/nagiosxi/var/dbmaint.lock
rm -rf /usr/local/nagiosxi/var/event_handler.lock
rm -rf /usr/local/nagiosxi/scripts/reconfigure_nagios.lock
systemctl restart mariadb
systemctl start nagios
systemctl start npcd
systemctl start crond
Re: Memory Usage after Upgrade to 5.7.2
Posted: Mon Jul 27, 2020 7:52 am
by tbarnett
Thanks Benjamin I am trying these items this AM.
I'll get back to you.
Tom
Re: Memory Usage after Upgrade to 5.7.2
Posted: Mon Jul 27, 2020 2:00 pm
by tbarnett
Ben,
Well I decided to restart Nagios again and now I am seeing graph data and things look much more settled.
Let's let this thing run for a while and I'll take another look.
again, thanks for your help.
Tom
Re: Memory Usage after Upgrade to 5.7.2
Posted: Mon Jul 27, 2020 2:18 pm
by benjaminsmith
Hi Tom,
Thanks for the update. We'll keep this thread open and let us know if anything changes.
Re: Memory Usage after Upgrade to 5.7.2
Posted: Tue Jul 28, 2020 7:47 am
by tbarnett
It continues to work fine this AM. I'd say if you haven't heard from me in a day or two feel free to close the case.
Thanks again for your help.
Tom
Re: Memory Usage after Upgrade to 5.7.2
Posted: Tue Jul 28, 2020 4:02 pm
by benjaminsmith
Hi Tom,
Sounds good!