automatic creation of pids

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.
shivangi
Posts: 32
Joined: Mon Mar 25, 2019 2:01 am

Re: automatic creation of pids

Post 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 .
Attachments
nagios commands.docx
(143.32 KiB) Downloaded 105 times
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: automatic creation of pids

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked