Page 4 of 4

Re: automatic creation of pids

Posted: Tue Jul 16, 2019 5:00 am
by shivangi
Hi ,

Sorry for late update .

kindly refer the attached document for the output of commands .

Also the cron job is running a php script and updating the hosts config files and restarting the nagios service .

p.s. can giving a separate hard coded command ( inststead of using one command and giving different values in service definition ) for monitoring different service lead to this problem ?( thats my thinking )

Thanks .

Re: automatic creation of pids

Posted: Tue Jul 16, 2019 8:55 am
by tgriep
Creating a hard coded command should not be the issue.

The output of some to the command you ran did not show what processes with the name nagios in them so we would need to see them the next time it happens.
Run this instead.

Code: Select all

ps -ef |grep nagios
I am thinking it was the nagios worker processes running and that take up to 60 seconds to stop typically.

Is the cron / php script stopping the nagios processes, verifying that it is not running before starting a new one?