mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-07-27 09:01:40 +08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user