Page 1 of 4
automatic creation of pids
Posted: Mon May 06, 2019 7:44 am
by shivangi
Hi Team,
I am currently working on nagios core version 4.4.1 and the problem i am facing is automatic generation of the nagios pids whenever i do any configuration changes on it as a reult of which nagios sometimes throws fake alerts , no alerts at all , missing configuration changes etc.
So everytime i have to manually kill those nagios pids in order to have nagios function properly ...
Can i know the reason for such behavior of Nagios and have a permanent solution for this so that no fake pids are generated at regular intervals .
Thanks in advance ..
Re: automatic creation of pids
Posted: Tue May 07, 2019 10:40 am
by scottwilkerson
What is the location of the pid files?
What is set as the
in your nagios.cfg?
Re: automatic creation of pids
Posted: Wed May 08, 2019 6:35 am
by shivangi
Hi,
Thanks for your response.
Location of my lock file is /usr/local/Nagios/var/Nagios.lock
and whenever i do pgrep nagios | wc -l even after stopping nagios ,there are a lot of pids running (approx 100 or even more).
Re: automatic creation of pids
Posted: Wed May 08, 2019 7:45 am
by scottwilkerson
What OS is this running on?
Also, next time you stop nagios can you run the following so we can see what they are?
finally, how are you starting/stopping nagios (what commands do you issue)?
Re: automatic creation of pids
Posted: Tue May 14, 2019 8:35 am
by shivangi
Hi Scotwilkerson,
Refer the attachment for the information on OS version and output of ps -ef| grep nagios . I hope it helps .
Also the commands i use for starting and stopping the nagios are :
service nagios start
service nagios stop
Thanks .
Re: automatic creation of pids
Posted: Tue May 14, 2019 8:47 am
by scottwilkerson
Is this the server running nagios? I only see NRPE checks...
let's narrow it down
Re: automatic creation of pids
Posted: Wed May 15, 2019 6:33 am
by shivangi
Yes Nagios is running on this server .
Refer the Attachment for the output of ps -ef | grep Nagios.cfg.
Re: automatic creation of pids
Posted: Wed May 15, 2019 6:46 am
by scottwilkerson
What is the output of the following:
Code: Select all
grep nagios.lock /etc/init.d/nagios
Re: automatic creation of pids
Posted: Mon May 20, 2019 3:02 am
by shivangi
Hi ,
I have attached the document for the command u asked.Hope it helps
Thanks.
Re: automatic creation of pids
Posted: Mon May 20, 2019 7:13 am
by scottwilkerson
This all looks normal, can you describe the details of what you are seeing as a problem? I think I'm misunderstanding the actual issue.