Werk #8570: Make PROCESS_HOST_CHECK_RESULT's behavior more Nagios-like

Component The Checkmk Micro Core
Title Make PROCESS_HOST_CHECK_RESULT's behavior more Nagios-like
Date Jul 25, 2016
Checkmk Edition Checkmk Enterprise (CEE)
Checkmk Version 1.4.0i1
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

The Nagios documentation for the external command PROCESS_HOST_CHECK_RESULT explicitly states that the return code in the commandline is already the host state, not the result code of a check result (which was the core's previous interpretation). We follow Nagios now more closely and map the return code in the commandline as follows:

0 => UP 1 => DOWN/UNREACHABLE (previously this meant UP, too) 2 => DOWN/UNREACHABLE

We still deviate a bit from Nagios, because the actual decision if a host is DOWN or UNREACHABLE is done by the core and can't be overridden from the outside.

To the list of all Werks