Page 1 of 2

CPU high after upgrade nagios XI 5.2.0

Posted: Tue Oct 27, 2015 10:18 am
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

Re: CPU high after upgrade nagios XI 5.2.0

Posted: Tue Oct 27, 2015 3:07 pm
by hsmith
How many services/hosts are you monitoring?

Re: CPU high after upgrade nagios XI 5.2.0

Posted: Wed Oct 28, 2015 4:00 am
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

Re: CPU high after upgrade nagios XI 5.2.0

Posted: Wed Oct 28, 2015 2:06 pm
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

Re: CPU high after upgrade nagios XI 5.2.0

Posted: Thu Oct 29, 2015 5:29 am
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

Re: CPU high after upgrade nagios XI 5.2.0

Posted: Thu Oct 29, 2015 8:30 am
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

Re: CPU high after upgrade nagios XI 5.2.0

Posted: Thu Oct 29, 2015 4:44 pm
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.

Re: CPU high after upgrade nagios XI 5.2.0

Posted: Thu Nov 05, 2015 4:14 am
by datacom
Hello,
any news?
Thanks

Re: CPU high after upgrade nagios XI 5.2.0

Posted: Thu Nov 05, 2015 3:52 pm
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.

Re: CPU high after upgrade nagios XI 5.2.0

Posted: Fri Nov 06, 2015 2:50 am
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