ref: this it part of releng repository refactoring, which affects logger scripts used in this config fedora-messaging-logger

Signed-off-by: Anton Medvedev <amedvede@redhat.com>
This commit is contained in:
Anton Medvedev
2025-10-01 12:39:23 +02:00
parent 1b94c390c8
commit 099cfd03ca

View File

@@ -61,13 +61,13 @@ define command{
# 'host-notify-by-fedora-messaging' command definition
define command{
command_name host-notify-by-fedora-messaging
command_line /usr/bin/echo '{"type": "$NOTIFICATIONTYPE$", "host": "$HOSTNAME$", "state": "$HOSTSTATE$", "output": "$HOSTOUTPUT$", "host_ack_author": "$HOSTACKAUTHOR$", "service_ack_author": "$SERVICEACKAUTHOR$"}' | fedora-messaging-logger --cert-prefix nagios --modname nagios --topic host.state.change --json-input
command_line /usr/bin/echo '{"type": "$NOTIFICATIONTYPE$", "host": "$HOSTNAME$", "state": "$HOSTSTATE$", "output": "$HOSTOUTPUT$", "host_ack_author": "$HOSTACKAUTHOR$", "service_ack_author": "$SERVICEACKAUTHOR$"}' | fedora_messaging_logger.py --cert-prefix nagios --modname nagios --topic host.state.change --json-input
}
# 'notify-by-fedora-messaging' command definition
define command{
command_name notify-by-fedora-messaging
command_line /usr/bin/echo '{"type": "$NOTIFICATIONTYPE$", "host": "$HOSTNAME$", "state": "$SERVICESTATE$", "service": "$SERVICEDESC$", "output": "$SERVICEOUTPUT$", "host_ack_author" "$HOSTACKAUTHOR$", "service_ack_author": "$SERVICEACKAUTHOR$"}' | fedora-messaging-logger --cert-prefix nagios --modname nagios --topic service.state.change --json-input
command_line /usr/bin/echo '{"type": "$NOTIFICATIONTYPE$", "host": "$HOSTNAME$", "state": "$SERVICESTATE$", "service": "$SERVICEDESC$", "output": "$SERVICEOUTPUT$", "host_ack_author" "$HOSTACKAUTHOR$", "service_ack_author": "$SERVICEACKAUTHOR$"}' | fedora_messaging_logger.py --cert-prefix nagios --modname nagios --topic service.state.change --json-input
}