how to reset the state and attempt count

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.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: how to reset the state and attempt count

Post by tgriep »

In Nagios, active checks involve spawning a child process (worker) and would leave behind zombie processes until they're reaped by the parent process (nagios).
Usually this happens very quickly but if nagios is blocking signals, say while in a handler for another signal, they'll stick around for a short while.
Also, if a script is being run by the Nagios process and it never exits, that could be another cause of the Defunct processes.

You may want to upgrade to the latest version of Nagios to see if that helps in the defunct processes.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jenithangel
Posts: 9
Joined: Mon Jul 10, 2017 7:31 am

Re: how to reset the state and attempt count

Post by jenithangel »

I was able to make the current attempt to 1 . when we delete the retention.dat and restart nagios,then the current attempt is reset ti 1 irrespective of plugin output.

Thanks for the help. you can close this thread.
Locked