Page 2 of 4
Re: automatic creation of pids
Posted: Mon Jun 17, 2019 5:39 am
by shivangi
Hi,
Sorry for the late reply .
Can you tell me what should be the output of the command pgrep nagios | wc -l ( this command list the no. of running PIDs ) after i stop the nagios using command service nagios stop.
Thanks.
Re: automatic creation of pids
Posted: Mon Jun 17, 2019 6:54 am
by scottwilkerson
Re: automatic creation of pids
Posted: Tue Jun 18, 2019 4:07 am
by shivangi
Hi ,
Exactly it should be zero but even after stopping Nagios when i am giving the command pgrep nagios | wc -l , its showing me some PIDs count instead of being zero .
May be due to these fake processes running , the configuration remains the same even after changing it and fake alerts are generated based on the previous configuration.
i hope you got the issue now .
Thanks.
Re: automatic creation of pids
Posted: Tue Jun 18, 2019 6:38 am
by scottwilkerson
I would run the following
Code: Select all
service nagios stop
killall -9 nagios
service nagios start
and yes, these extra processes definitely could cause what you described.
Re: automatic creation of pids
Posted: Tue Jun 18, 2019 9:35 am
by shivangi
Hi,
Thanks, for the information . I had tried doing this earlier though but didnt got the permanent solution for this . These PIDs are getting generated again after i do some configuration changes and everytime manually i have to kill these fake processes.
Can i have a permanent solution for this so that these Fake PIDs are not created and i dont get fake alerts ?
Thanks .
Re: automatic creation of pids
Posted: Tue Jun 18, 2019 10:54 am
by scottwilkerson
The question becomes "Why is nagios leaving processes open when you restart the service?"
What process are you running after making config changes?
Re: automatic creation of pids
Posted: Wed Jun 19, 2019 2:25 am
by shivangi
Hi,
I am just making the configuration changes in my files, saving the file, restarting the Nagios instance . That's it .
But i have cron jobs running every 8 hours, that are as well making the configuration changes in the file and restarting the Nagios instance . Can that be a problem?
Thanks .
Re: automatic creation of pids
Posted: Wed Jun 19, 2019 8:14 am
by scottwilkerson
shivangi wrote:But i have cron jobs running every 8 hours, that are as well making the configuration changes in the file and restarting the Nagios instance . Can that be a problem?
Possibly, but I would consider checking that all the processes are stopping correctly when issuing a
Re: automatic creation of pids
Posted: Wed Jun 19, 2019 9:54 am
by shivangi
and how can i check what processes are running due to i don't know what even after stopping Nagios ?
Re: automatic creation of pids
Posted: Wed Jun 19, 2019 11:02 am
by scottwilkerson