mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
add in nagios patches from karsten
This commit is contained in:
committed by
Pierre-Yves Chibon
parent
0d287fce63
commit
41fe0ec74e
@@ -58,6 +58,20 @@ define command{
|
||||
command_line /usr/bin/echo '{"type": "$NOTIFICATIONTYPE$", "host": "$HOSTNAME$", "state": "$SERVICESTATE$", "service": "$SERVICEDESC$", "output": "$SERVICEOUTPUT$", "host_ack_author": "$HOSTACKAUTHOR$", "service_ack_author": "$SERVICEACKAUTHOR$"}' | fedmsg-logger --cert-prefix nagios --modname nagios --topic service.state.change --json-input
|
||||
}
|
||||
|
||||
# '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
|
||||
}
|
||||
|
||||
# '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
|
||||
}
|
||||
|
||||
|
||||
|
||||
# 'notify-by-xmpp' command definition
|
||||
#define command{
|
||||
# command_name notify-by-xmpp
|
||||
|
||||
@@ -191,7 +191,7 @@
|
||||
- db_backups.cfg
|
||||
- disk.cfg
|
||||
- dns.cfg
|
||||
- fedmsg.cfg
|
||||
- fedora-messaging.cfg
|
||||
- file_age.cfg
|
||||
- fmn.cfg
|
||||
- haproxy.cfg
|
||||
|
||||
Reference in New Issue
Block a user