nagios/commands.go
func ProcessHostCheckResult(
	host_name string,
	status_code int,
	plugin_output string,
) *livestatus.Command {
	return livestatus.NewCommand(
		"PROCESS_HOST_CHECK_RESULT",
		stringifyArg("host_name", "string", host_name),
		stringifyArg("status_code", "int", status_code),
		stringifyArg("plugin_output", "string", plugin_output),
	)
}
func ProcessHostCheckResult(
	host_name string,
	status_code int,
	plugin_output string,
) *livestatus.Command {
	return livestatus.NewCommand(
		"PROCESS_HOST_CHECK_RESULT",
		stringifyArg("host_name", "string", host_name),
		stringifyArg("status_code", "int", status_code),
		stringifyArg("plugin_output", "string", plugin_output),
	)
}
func ProcessHostCheckResult ( host_name string , status_code int , plugin_output string , ) * livestatus . Command { return livestatus . NewCommand ( " " , stringifyArg ( " " , " " , host_name ) , stringifyArg ( " " , " " , status_code ) , stringifyArg ( " " , " " , plugin_output ) , ) }
// ProcessHostCheckResult creates a new "PROCESS_HOST_CHECK_RESULT" Nagios command.
//
// This is used to submit a passive check result for a particular host.
//
// The "status_code" indicates the state of the host check and should be one of the following: 0=UP, 1=DOWN,
// 2=UNREACHABLE.
//
// The "plugin_output" argument contains the text returned from the host check, along with optional performance data.
ProcessHostCheckResult creates a new PROCESS_HOST_CHECK_RESULT Nagios command . This is used to submit a passive check result for a particular host . The status_code indicates the state of the host check and should be one of the following : 0 = UP 1 = DOWN 2 = UNREACHABLE . The plugin_output argument contains the text returned from the host check along with optional performance data .