Werk #0398: Tolerate debug output in check plugins when using CMC

KomponenteCore & Setup
TitelTolerate debug output in check plugins when using CMC
Datum2013-12-18 13:24:15
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.2.5i1
LevelTrivial Change
KlasseBug Fix
KompatibilitätKompatibel - benötigt kein manuelles Eingreifen

When using the Check_MK Micro Core and at the same time check plugins output debug information to stdout, the communication with the core was garbled up and the check helper died with an exception. This fix eliminates any unauthorized output to stdout be removing the filedescriptor to a save place and replacing stdout with /dev/null.