Werk #8560: Check_MK helpers: Output warning message to cmc.log when detecting new open file descriptors after running checks

Komponente The Checkmk Micro Core
Titel Check_MK helpers: Output warning message to cmc.log when detecting new open file descriptors after running checks
Datum 25.10.2016
Checkmk Edition Checkmk Enterprise (CEE)
Checkmk-Version 1.4.0i2
Level Kleine Änderung
Klasse Neues Feature
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

In case a helper detects that it has new open file descriptors after performing checks, it writes lines like these to the cmc.log:

2016-10-25 16:15:59 [4] [Check_MK helper 11344] >> Open file descriptors changed after %d cycles. Currently open: 2016-10-25 16:15:59 [4] [Check_MK helper 11344] >> 0 -> socket:[1030046] 2016-10-25 16:15:59 [4] [Check_MK helper 11344] >> 1 -> pipe:[1030047] 2016-10-25 16:15:59 [4] [Check_MK helper 11344] >> 2 -> pipe:[1030047] 2016-10-25 16:15:59 [4] [Check_MK helper 11344] >> 3 -> socket:[1030046] 2016-10-25 16:15:59 [4] [Check_MK helper 11344] >> 4 -> /tmp/x 2016-10-25 16:15:59 [4] [Check_MK helper 11344] >> 5 -> UNKNOWN 2016-10-25 16:15:59 [4] [Check_MK helper 11344] >> 6 -> /dev/urandom

This may help detect and debug file descriptor leaks.

Zur Liste aller Werks