Make mapping of realserver state to service check state configurable for kemp_loadmaster_realserver
The check plugin kemp_loadmaster_realserver has a hard coded mapping from the real server state to the service check state:
_RS_STATE_MAP: Final = {
"1": (State.OK, "in service"),
"2": (State.CRIT, "out of service"),
"3": (State.CRIT, "failed"),
"4": (State.CRIT, "disabled"),
}
It would be good to be able to configure that.
E.g. we would want to set State.WARN for RS_STATE 4 ("disabled").