CPU high after upgrade nagios XI 5.2.0

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
datacom
Posts: 18
Joined: Tue May 20, 2014 2:42 am

CPU high after upgrade nagios XI 5.2.0

Post by datacom »

Hi,
I've ugraded to the last version (5.2.0) nagiosXI. After that my server CPU is became higher (see attachement). I see mysql deamon as main process.
And my sql log are error free. Also, I made a repairmysql but without effect.
Have you any idea?
Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: CPU high after upgrade nagios XI 5.2.0

Post by hsmith »

How many services/hosts are you monitoring?
Former Nagios Employee.
me.
datacom
Posts: 18
Joined: Tue May 20, 2014 2:42 am

Re: CPU high after upgrade nagios XI 5.2.0

Post by datacom »

Hello,
With the last version 5.0, I haven't this problem.
5500 services, 800 hosts with aditional componets like BPI, with Maps Nagvis.
Also, every night 00:00 about the monitoring engine crash (we have a sheduled weekly backup at 03:00 AM, only).
best regards
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: CPU high after upgrade nagios XI 5.2.0

Post by tgriep »

Can you stop and start the mysql process and see if that helps? The system seems to have a lot of them running.
Run the following and let up know if this helps.

Code: Select all

service ndo2db stop
service mysqld restart
service ndo2db start
Can you upload the nagios.log file so we can see about the crashing at midnight?
It is located here on the system.

Code: Select all

/usr/local/nagios/var/nagios.log
Be sure to check out our Knowledgebase for helpful articles and solutions!
datacom
Posts: 18
Joined: Tue May 20, 2014 2:42 am

Re: CPU high after upgrade nagios XI 5.2.0

Post by datacom »

Hi,
With a DB restart or restart machine, it's alway the same problem. About crash, today It was't midnight but 8:00 PM therfore ramdom.
The nagios.log is too big, I've splited.

Also, I checked the process numbers and I see lot of CPU cussumption by check_bpi.php. So, I've deleted de BPI configuration. But, even after a restart server, I've always the same BPI process with the same BPIgroup. As the BPI(my version 2.4.1) is a core components, I can't stop it!
In my edit setting, the /usr/local/nagiosxi/etc/components/bpi.conf is normally used but now empty of configuaration.

I've found two other file conf on my server but they are with a empty configuration.
/usr/local/nagiosxi/tmp/nagiosxi/nagiosxi/basedir/html/includes/components/nagiosbpi/bpi.conf
/usr/local/nagiosxi/html/includes/components/nagiosbpi/bpi.conf

I've rename temporary /usr/local/nagios/libexec/check_bpi.php in .bck After that my CPU is better(20%). As you see each check_pbi take 15% of CPU, with 20 check I'm out of CPU.
I think, the major probem is with BPI, rather.
thanks
You do not have the required permissions to view the files attached to this post.
datacom
Posts: 18
Joined: Tue May 20, 2014 2:42 am

Re: CPU high after upgrade nagios XI 5.2.0

Post by datacom »

Hi,
New information, I've found where was launch each check_bpi.php process. They are services(ARG1 of check command) matching with define line name in bpi.conf
I don't undertsand why each check_bpi command use so many CPU.

Nota: In attach you can see the last crash and after 12:00 the load CPU without check_bpi process
Best regards
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: CPU high after upgrade nagios XI 5.2.0

Post by tmcdonald »

Brought this up to the devs and Jake (@jomann) will be looking into this. If you don't hear back from us by Monday, feel free to bump this.
Former Nagios employee
datacom
Posts: 18
Joined: Tue May 20, 2014 2:42 am

Re: CPU high after upgrade nagios XI 5.2.0

Post by datacom »

Hello,
any news?
Thanks
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: CPU high after upgrade nagios XI 5.2.0

Post by jomann »

Do you have a backup of your previous BPI configuration? If so, please put the configuration back and you can keep the bpi check out of your libexec folder if that helps with your CPU load for the time being. I believe we have a fix for this but please give me a few minutes while we create the tarball for you.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
datacom
Posts: 18
Joined: Tue May 20, 2014 2:42 am

Re: CPU high after upgrade nagios XI 5.2.0

Post by datacom »

hello,
I've an error, the component wait a nagios xi 5.2.1 version. And I've lost the BPI grafic access by menu Home.
Best regards
You do not have the required permissions to view the files attached to this post.
Locked