nagios/commands.go
func ProcessServiceCheckResult(
	host_name string,
	service_description string,
	return_code int,
	plugin_output string,
) *livestatus.Command {
	return livestatus.NewCommand(
		"PROCESS_SERVICE_CHECK_RESULT",
		stringifyArg("host_name", "string", host_name),
		stringifyArg("service_description", "string", service_description),
		stringifyArg("return_code", "int", return_code),
		stringifyArg("plugin_output", "string", plugin_output),
	)
}
func ProcessServiceCheckResult(
	host_name string,
	service_description string,
	return_code int,
	plugin_output string,
) *livestatus.Command {
	return livestatus.NewCommand(
		"PROCESS_SERVICE_CHECK_RESULT",
		stringifyArg("host_name", "string", host_name),
		stringifyArg("service_description", "string", service_description),
		stringifyArg("return_code", "int", return_code),
		stringifyArg("plugin_output", "string", plugin_output),
	)
}
// ProcessServiceCheckResult creates a new "PROCESS_SERVICE_CHECK_RESULT" Nagios command.
//
// This is used to submit a passive check result for a particular service.
//
// The "return_code" field should be one of the following: 0=OK, 1=WARNING, 2=CRITICAL, 3=UNKNOWN.
//
// The "plugin_output" field contains text output from the service check, along with optional performance data.