Nagios 4 how many nagios daemons should be running?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
chrislewis28
Posts: 11
Joined: Tue Jun 04, 2013 6:49 am

Nagios 4 how many nagios daemons should be running?

Post by chrislewis28 »

Hi,

I have upgraded to Nagios 4 and was wondering how many Nagios daemons should be running? from my below output it seems there are seven running:

Code: Select all

nbsrvnagi-01v:~> ps -ef|grep "nagios -d"
nagios    3149     1 11 Mar24 ?        02:39:15 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios    3163  3149  0 Mar24 ?        00:00:16 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   10415 12348  3 10:24 ?        00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   12348     1 11 Mar24 ?        02:35:59 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   12362 12348  0 Mar24 ?        00:00:16 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   16374     1 12 Mar24 ?        02:47:37 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios   16390 16374  0 Mar24 ?        00:00:15 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios 4 how many nagios daemons should be running?

Post by abrist »

There should only be 1 parent process, but many forks. Run the following command, if you get back more than 1 pid, then you most likely have more than 1 parent process:

Code: Select all

ps hf -opid -C nagios | awk '{ print $1; exit }'
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked