Memory Usage after Upgrade to 5.7.2

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tbarnett
Posts: 52
Joined: Thu Jul 26, 2012 8:36 am

Memory Usage after Upgrade to 5.7.2

Post 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.
You do not have the required permissions to view the files attached to this post.
Tom Barnett
Senior Systems Administrator
Prime, inc.
2740 N. Mayfair Ave
Springfield, MO 65803
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Memory Usage after Upgrade to 5.7.2

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Memory Usage after Upgrade to 5.7.2

Post 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.

Code: Select all

load_threshold = 50.0
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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
tbarnett
Posts: 52
Joined: Thu Jul 26, 2012 8:36 am

Re: Memory Usage after Upgrade to 5.7.2

Post by tbarnett »

Thanks Benjamin I am trying these items this AM.

I'll get back to you.

Tom
Tom Barnett
Senior Systems Administrator
Prime, inc.
2740 N. Mayfair Ave
Springfield, MO 65803
tbarnett
Posts: 52
Joined: Thu Jul 26, 2012 8:36 am

Re: Memory Usage after Upgrade to 5.7.2

Post 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
Tom Barnett
Senior Systems Administrator
Prime, inc.
2740 N. Mayfair Ave
Springfield, MO 65803
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Memory Usage after Upgrade to 5.7.2

Post by benjaminsmith »

Hi Tom,

Thanks for the update. We'll keep this thread open and let us know if anything changes.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
tbarnett
Posts: 52
Joined: Thu Jul 26, 2012 8:36 am

Re: Memory Usage after Upgrade to 5.7.2

Post 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
Tom Barnett
Senior Systems Administrator
Prime, inc.
2740 N. Mayfair Ave
Springfield, MO 65803
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Memory Usage after Upgrade to 5.7.2

Post by benjaminsmith »

Hi Tom,

Sounds good!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked