add in nagios patches from karsten

This commit is contained in:
Stephen Smoogen 2019-11-15 21:18:08 +00:00 committed by Pierre-Yves Chibon
parent 0d287fce63
commit 41fe0ec74e
2 changed files with 15 additions and 1 deletions

View file

@ -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

View file

@ -191,7 +191,7 @@
- db_backups.cfg
- disk.cfg
- dns.cfg
- fedmsg.cfg
- fedora-messaging.cfg
- file_age.cfg
- fmn.cfg
- haproxy.cfg