This repository has been archived by the owner on Jun 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
notify_jabber_commands.cfg
76 lines (68 loc) · 4.24 KB
/
notify_jabber_commands.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#
# Notify by jabber command definitions. There are 2 sets of commands support the different
# configurations used by sendxmpp, and all are fairly self-explanatory.
#
#
# Note, the SSL versions turn off TLS verification by default
#
# host commands:
#
# notify-host-by-jabber-chatroom-ssl
# notify-host-by-jabber-user-ssl
# notify-host-by-jabber-chatroom
# notify-host-by-jabber-user
#
# service commands:
#
# notify-service-by-jabber-chatroom-ssl
# notify-service-by-jabber-user-ssl
# notify-service-by-jabber-chatroom
# notify-service-by-jabber-user
define command {
command_name notify-host-by-jabber-chatroom-ssl
command_line /usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nComment:$NOTIFICATIONCOMMENT$" \
| /usr/bin/sendxmpp -f /etc/naemon/sendxmpprc \
--ssl --no-tls-verify --chatroom $CONTACTADDRESS1$
}
define command {
command_name notify-host-by-jabber-user-ssl
command_line /usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nComment:$NOTIFICATIONCOMMENT$" \
| /usr/bin/sendxmpp -f /etc/naemon/sendxmpprc \
--ssl --no-tls-verify $CONTACTADDRESS1$
}
define command {
command_name notify-host-by-jabber-chatroom
command_line /usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nComment:$NOTIFICATIONCOMMENT" \
| /usr/bin/sendxmpp -f /etc/naemon/sendxmpprc \
--chatroom $CONTACTADDRESS1$
}
define command {
command_name notify-host-by-jabber-user
command_line /usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nComment:$NOTIFICATIONCOMMENT$" \
| /usr/bin/sendxmpp -f /etc/naemon/sendxmpprc \
$CONTACTADDRESS1$
}
define command {
command_name notify-service-by-jabber-chatroom-ssl
command_line /usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$\nService: $SERVICEDESC$\nOutput: $SERVICEOUTPUT$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nComment:$NOTIFICATIONCOMMENT$" \
| /usr/bin/sendxmpp -f /etc/naemon/sendxmpprc \
--ssl --no-tls-verify --chatroom $CONTACTADDRESS1$
}
define command {
command_name notify-service-by-jabber-user-ssl
command_line /usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$\nService: $SERVICEDESC$\nOutput: $SERVICEOUTPUT$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nComment:$NOTIFICATIONCOMMENT$" \
| /usr/bin/sendxmpp -f /etc/naemon/sendxmpprc \
--ssl --no-tls-verify $CONTACTADDRESS1$
}
define command {
command_name notify-service-by-jabber-chatroom
command_line /usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$\nService: $SERVICEDESC$\nOutput: $SERVICEOUTPUT$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nComment:$NOTIFICATIONCOMMENT$" \
| /usr/bin/sendxmpp -f /etc/naemon/sendxmpprc \
--chatroom $CONTACTADDRESS1$
}
define command {
command_name notify-service-by-jabber-user
command_line /usr/bin/printf "%b" "Notification Type: $NOTIFICATIONTYPE$\nService: $SERVICEDESC$\nOutput: $SERVICEOUTPUT$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nComment:$NOTIFICATIONCOMMENT$" \
| /usr/bin/sendxmpp -f /etc/naemon/sendxmpprc \
$CONTACTADDRESS1$
}