Nagios process high CPU usage

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Nagios process high CPU usage

Post by amit.ahuja »

Hi, we are having some problem with the nagios process. We are experiencing server slowness now, and we figured that the cpu usage of nagios process was increased to 100 every 5 to 10 mins. The odd thing is that 2 or 3 nagios processes were running and all of them have like 99 percent cpu usage. Please see the attach screenshot. Thanks in advance for any suggestion and help.
6-28-2016 11-08-20 AM.png
6-28-2016 11-08-30 AM.png
You do not have the required permissions to view the files attached to this post.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Nagios process high CPU usage

Post by bwallace »

A better way to check for multiple nagios processes is to run ps - aef | grep nagios.cfg

# Look for multiple parent (PPID) processes. The Nagios process forks itself to run checks therefore subprocesses are normal
# The nagios user should probably be the only owner of the nagios process
# 'service nagios restart' will still leave the extra Nagios processes running, so this is not an option

If there are multiple Nagios processes running, this can cause problems. To resolve, run these commands

Code: Select all

service nagios stop
killall -9 nagios
service nagios start
Beyond that, how many services are configured and what are the specs of the XI machine, resource - wise?
Be sure to check out the Knowledgebase for helpful articles and solutions!
amit.ahuja
Posts: 113
Joined: Fri May 15, 2015 8:20 am

Re: Nagios process high CPU usage

Post by amit.ahuja »

Thanks for the reply, we removed some services in Nagios, and this issue got resolved.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Nagios process high CPU usage

Post by mcapra »

Is it alright if we lock this thread?
Former Nagios employee
https://www.mcapra.com/
Locked