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.
Nagios process high CPU usage
-
amit.ahuja
- Posts: 113
- Joined: Fri May 15, 2015 8:20 am
Nagios process high CPU usage
You do not have the required permissions to view the files attached to this post.
Re: Nagios process high CPU usage
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
Beyond that, how many services are configured and what are the specs of the XI machine, resource - wise?
# 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 startBe 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
Thanks for the reply, we removed some services in Nagios, and this issue got resolved.
Re: Nagios process high CPU usage
Is it alright if we lock this thread?
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/