Page 1 of 1

Higher CPU utilization after upgrade to 5.5.1

Posted: Mon Jul 23, 2018 3:03 am
by Kujab
Hello,
I can see higher CPU utilization after upgrade to 5.5.1 on 19th of July.
Previous values were about 0,7. After upgrade it's constantly above 1.
Is that correct? Or anything wrong?
Best regards
Jakub

Re: Higher CPU utilization after upgrade to 5.5.1

Posted: Mon Jul 23, 2018 8:25 am
by scottwilkerson
Can you post the output of the following

Code: Select all

ps -ef|grep nagios.cfg

Re: Higher CPU utilization after upgrade to 5.5.1

Posted: Tue Jul 24, 2018 2:13 am
by Kujab
This is output:
[root@localhost ~]# ps -ef|grep nagios.cfg
root 17773 13519 0 09:12 pts/0 00:00:00 grep nagios.cfg
nagios 23565 1 0 Jul22 ? 00:32:34 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 24289 23565 0 Jul22 ? 00:00:10 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 26157 1 0 Jul16 ? 01:45:12 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 26225 26157 0 Jul16 ? 00:00:34 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
[root@localhost ~]#

Re: Higher CPU utilization after upgrade to 5.5.1

Posted: Tue Jul 24, 2018 7:00 am
by scottwilkerson
You have 2 nagios parent processes.

Run the following

Code: Select all

service nagios stop
killall -9 nagios
service nagios start

Re: Higher CPU utilization after upgrade to 5.5.1

Posted: Tue Jul 24, 2018 7:32 am
by Kujab
After killing processes it looks like this:

Code: Select all

[root@localhost ~]# ps -ef|grep nagios.cfg
nagios    8551     1  3 14:29 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios    8655  8551  0 14:29 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root     10515 13519  0 14:29 pts/0    00:00:00 grep nagios.cfg
[root@localhost ~]#
Load average is still higher. I will monitore that for one day.

Re: Higher CPU utilization after upgrade to 5.5.1

Posted: Tue Jul 24, 2018 7:34 am
by scottwilkerson
Kujab wrote:After killing processes it looks like this:

Code: Select all

[root@localhost ~]# ps -ef|grep nagios.cfg
nagios    8551     1  3 14:29 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios    8655  8551  0 14:29 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root     10515 13519  0 14:29 pts/0    00:00:00 grep nagios.cfg
[root@localhost ~]#
Load average is still higher. I will monitore that for one day.
That looks better it should start to drop, will take a bit of time..

Let us know how it turns out

Re: Higher CPU utilization after upgrade to 5.5.1

Posted: Wed Jul 25, 2018 2:05 am
by Kujab
Looks better:
20180725 - localhost-current_load.png
Also processes are still the same:
[root@localhost ~]# ps -ef|grep nagios.cfg
nagios 8551 1 1 Jul24 ? 00:12:53 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 8655 8551 0 Jul24 ? 00:00:03 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 13041 10146 0 09:01 pts/0 00:00:00 grep nagios.cfg
[root@localhost ~]#

I suppose we can close this ticket.

Should be fixed in upgrade procedure, it never happened before.

Re: Higher CPU utilization after upgrade to 5.5.1

Posted: Wed Jul 25, 2018 8:48 am
by scottwilkerson
Kujab wrote:Looks better:
20180725 - localhost-current_load.png
Also processes are still the same:
[root@localhost ~]# ps -ef|grep nagios.cfg
nagios 8551 1 1 Jul24 ? 00:12:53 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 8655 8551 0 Jul24 ? 00:00:03 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 13041 10146 0 09:01 pts/0 00:00:00 grep nagios.cfg
[root@localhost ~]#

I suppose we can close this ticket.

Should be fixed in upgrade procedure, it never happened before.

Great Locking