nagios/commands.go
func SendCustomHostNotification(
	host_name string,
	options int,
	author string,
	comment string,
) *livestatus.Command {
	return livestatus.NewCommand(
		"SEND_CUSTOM_HOST_NOTIFICATION",
		stringifyArg("host_name", "string", host_name),
		stringifyArg("options", "int", options),
		stringifyArg("author", "string", author),
		stringifyArg("comment", "string", comment),
	)
}
func SendCustomHostNotification(
	host_name string,
	options int,
	author string,
	comment string,
) *livestatus.Command {
	return livestatus.NewCommand(
		"SEND_CUSTOM_HOST_NOTIFICATION",
		stringifyArg("host_name", "string", host_name),
		stringifyArg("options", "int", options),
		stringifyArg("author", "string", author),
		stringifyArg("comment", "string", comment),
	)
}
func SendCustomHostNotification ( host_name string , options int , author string , comment string , ) * livestatus . Command { return livestatus . NewCommand ( " " , stringifyArg ( " " , " " , host_name ) , stringifyArg ( " " , " " , options ) , stringifyArg ( " " , " " , author ) , stringifyArg ( " " , " " , comment ) , ) }
// SendCustomHostNotification creates a new "SEND_CUSTOM_HOST_NOTIFICATION" Nagios command.
//
// Allows you to send a custom host notification.
//
// Very useful in dire situations, emergencies or to communicate with all admins that are responsible for a particular
// host.
//
// When the host notification is sent out, the $NOTIFICATIONTYPE$ macro will be set to "CUSTOM".
//
// The <options> field is a logical OR of the following integer values that affect aspects of the notification that are
// sent out: 0 = No option (default), 1 = Broadcast (send notification to all normal and all escalated contacts for the
// host), 2 = Forced (notification is sent out regardless of current time, whether or not notifications are enabled,
// etc.), 4 = Increment current notification # for the host (this is not done by default for custom notifications).
//
// The comment field can be used with the
// $NOTIFICATIONCOMMENT$ macro in notification commands.
SendCustomHostNotification creates a new SEND_CUSTOM_HOST_NOTIFICATION Nagios command . Allows you to send a custom host notification . Very useful in dire situations emergencies or to communicate with all admins that are responsible for a particular host . When the host notification is sent out the $NOTIFICATIONTYPE$ macro will be set to CUSTOM . The <options > field is a logical OR of the following integer values that affect aspects of the notification that are sent out : 0 = No option ( default ) 1 = Broadcast ( send notification to all normal and all escalated contacts for the host ) 2 = Forced ( notification is sent out regardless of current time whether or not notifications are enabled etc . ) 4 = Increment current notification # for the host ( this is not done by default for custom notifications ) . The comment field can be used with the $NOTIFICATIONCOMMENT$ macro in notification commands .