NRPE, fork and defunct process
Samuel Mutel
smutel at monitoring-fr.org
Fri Jan 28 17:05:37 CET 2011
It works. I have replaced fork by system("nohup $cmd >&- 2>&- &");
Regards,
Samuel Mutel.
----- Mail original -----
De: "Samuel Mutel" <smutel at monitoring-fr.org>
À: nagios-devel at lists.sourceforge.net
Envoyé: Vendredi 28 Janvier 2011 15:15:50
Objet: [Nagios-devel] NRPE, fork and defunct process
Hi,
I have a perl plugin executed from NRPE.
This plugin used fork system call to execute a system command in a child process.
The father exit but become a defunct process.
The problem is that NRPE wait the father (defunct process) exit, so wait that the child is finished.
Do someone have a solution ?
Regards,
Samuel Mutel.
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list