-
Notifications
You must be signed in to change notification settings - Fork 0
/
monmodopts.h
220 lines (197 loc) · 10.4 KB
/
monmodopts.h
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
/*
All of the documentation and software included in this and any
other Informatica Corporation Ultra Messaging Releases
Copyright (C) Informatica Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted only as covered by the terms of a
valid software license agreement with Informatica Corporation.
(C) Copyright 2004,2022 Informatica LLC. All Rights Reserved.
THE SOFTWARE IS PROVIDED "AS IS" AND INFORMATICA DISCLAIMS ALL WARRANTIES
EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF
NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
PURPOSE. INFORMATICA DOES NOT WARRANT THAT USE OF THE SOFTWARE WILL BE
UNINTERRUPTED OR ERROR-FREE. INFORMATICA SHALL NOT, UNDER ANY CIRCUMSTANCES, BE
LIABLE TO LICENSEE FOR LOST PROFITS, CONSEQUENTIAL, INCIDENTAL, SPECIAL OR
INDIRECT DAMAGES ARISING OUT OF OR RELATED TO THIS AGREEMENT OR THE
TRANSACTIONS CONTEMPLATED HEREUNDER, EVEN IF INFORMATICA HAS BEEN APPRISED OF
THE LIKELIHOOD OF SUCH DAMAGES.
*/
/*
All of the documentation and software included in this and any
other Informatica Corporation Ultra Messaging Releases
Copyright (C) Informatica Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted only as covered by the terms of a
valid software license agreement with Informatica Corporation.
THE SOFTWARE IS PROVIDED "AS IS" AND INFORMATICA DISCLAIMS ALL WARRANTIES
EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY IMPLIED WARRANTIES OF
NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR
PURPOSE. INFORMATICA DOES NOT WARRANT THAT USE OF THE SOFTWARE WILL BE
UNINTERRUPTED OR ERROR-FREE. INFORMATICA SHALL NOT, UNDER ANY CIRCUMSTANCES, BE
LIABLE TO LICENSEE FOR LOST PROFITS, CONSEQUENTIAL, INCIDENTAL, SPECIAL OR
INDIRECT DAMAGES ARISING OUT OF OR RELATED TO THIS AGREEMENT OR THE
TRANSACTIONS CONTEMPLATED HEREUNDER, EVEN IF INFORMATICA HAS BEEN APPRISED OF
THE LIKELIHOOD OF SUCH DAMAGES.
*/
#ifndef MONMODOPTS_H_INCLUDED
#define MONMODOPTS_H_INCLUDED
#define MONMODULEOPTS_PRELUDE \
"\n" \
"Transport and format options are passed as name=value pairs, separated by a semicolon.\n" \
"The entire option string should be enclosed in double-quotes.\n"
#define MONMODULEOPTS_LBM_PRELUDE \
"\n" \
"LBM transport options:\n" \
"Note that individual LBM options can be specified as <scope>|<option>=value, where\n" \
" <scope> is one of context, source, receiver, wildcard_receiver, or event_queue\n" \
" <option> is the LBM configuration option name\n" \
"The vertical bar (pipe symbol) is required when specifying individual LBM options.\n"
#define MONMODULEOPTS_LBMSNMP_PRELUDE \
"\n" \
"LBMSNMP transport options:\n" \
"Note that individual LBM options can be specified as <scope>|<option>=value, where\n" \
" <scope> is one of context, source, receiver, wildcard_receiver, or event_queue\n" \
" <option> is the LBM configuration option name\n" \
"The vertical bar (pipe symbol) is required when specifying individual LBM options.\n"
#define MONMODULEOPTS_UDP_PRELUDE \
"\n" \
"UDP transport options:\n"
#define MONMODULEOPTS_CSV_PRELUDE \
"\n" \
"CSV format options:\n"
#define MONMODULEOPTS_PB_PRELUDE \
"\n" \
"PB format options:\n"
/* All module options. */
#define MONMODULEOPTS_ALL \
MONMODULEOPTS_PRELUDE \
MONMODULEOPTS_LBM_PRELUDE \
" config=FILE use LBM configuration file FILE\n" \
" topic=TOPIC send/receive statistics on topic TOPIC\n" \
" default is /29west/statistics\n" \
" wctopic=PATTERN receive statistics on wildcard topic PATTERN\n" \
" See https://communities.informatica.com/infakb/faq/5/Pages/80075.aspx\n" \
" for guidelines on using wildcard topics. Also make sure the statistics\n" \
" topic namespace is disjoint from the data topic namespace.\n" \
" allow_debug=VAL VAL may be `off' or `on'\n" \
" defaults to `off'\n" \
MONMODULEOPTS_LBMSNMP_PRELUDE \
" config=FILE use LBM configuration file FILE\n" \
" topic=TOPIC send/receive statistics on topic TOPIC\n" \
" default is /29west/statistics\n" \
" wctopic=PATTERN receive statistics on wildcard topic PATTERN\n" \
" See https://communities.informatica.com/infakb/faq/5/Pages/80075.aspx\n" \
" for guidelines on using wildcard topics. Also make sure the statistics\n" \
" topic namespace is disjoint from the data topic namespace.\n" \
MONMODULEOPTS_UDP_PRELUDE \
" address=IP send statistics to address IP\n" \
" port=NUM receive on UDP port NUM\n" \
" default is 2933\n" \
" interface=IP receive multicast on interface IP\n" \
" default is INADDR_ANY (0.0.0.0)\n" \
" mcgroup=GRP send/receive on multicast group GRP\n" \
" bcaddress=IP send statistics to broadcast address IP\n" \
" ttl=NUM send multicast statistics with TTL NUM\n" \
" default is 16\n" \
MONMODULEOPTS_CSV_PRELUDE \
" separator=CHAR separate CSV fields with character CHAR\n" \
" defaults to `,'\n" \
" Don\'t use a semicolon!\n" \
" passthrough=VAL VAL may be `off', `on' or `convert'\n" \
" defaults to `off'\n" \
MONMODULEOPTS_PB_PRELUDE \
" filters=FILE use FILE that contains filter options\n" \
" passthrough=VAL VAL may be `off', `on' or `convert'\n" \
" defaults to `off'\n"
/* Sender-specific module options. */
#define MONMODULEOPTS_SENDER \
MONMODULEOPTS_PRELUDE \
MONMODULEOPTS_LBM_PRELUDE \
" config=FILE use LBM configuration file FILE\n" \
" topic=TOPIC send statistics on topic TOPIC\n" \
" default is /29west/statistics\n" \
" allow_debug=VAL VAL may be `off' or `on'\n" \
" defaults to `off'\n" \
MONMODULEOPTS_LBMSNMP_PRELUDE \
" config=FILE use LBM configuration file FILE\n" \
" topic=TOPIC send statistics on topic TOPIC\n" \
" default is /29west/statistics\n" \
MONMODULEOPTS_UDP_PRELUDE \
" address=IP send statistics to address IP\n" \
" port=NUM send to UDP port NUM\n" \
" default is 2933\n" \
" mcgroup=GRP send on multicast group GRP\n" \
" bcaddress=IP send statistics to broadcast address IP\n" \
" ttl=NUM send multicast statistics with TTL NUM\n" \
" default is 16\n" \
MONMODULEOPTS_CSV_PRELUDE \
" separator=CHAR separate CSV fields with character CHAR\n" \
" defaults to `,'\n" \
" Don\'t use a semicolon!\n" \
MONMODULEOPTS_PB_PRELUDE \
" filters=FILE use FILE that contains filter options\n"
/* Receiver-specific module options. */
#define MONMODULEOPTS_RECEIVER \
MONMODULEOPTS_PRELUDE \
MONMODULEOPTS_LBM_PRELUDE \
" config=FILE use LBM configuration file FILE\n" \
" topic=TOPIC receive statistics on topic TOPIC\n" \
" default is /29west/statistics\n" \
" wctopic=PATTERN receive statistics on wildcard topic PATTERN\n" \
" See https://communities.informatica.com/infakb/faq/5/Pages/80075.aspx\n" \
" for guidelines on using wildcard topics. Also make sure the statistics\n" \
" topic namespace is disjoint from the data topic namespace.\n" \
MONMODULEOPTS_LBMSNMP_PRELUDE \
" config=FILE use LBM configuration file FILE\n" \
" topic=TOPIC receive statistics on topic TOPIC\n" \
" default is /29west/statistics\n" \
" wctopic=PATTERN receive statistics on wildcard topic PATTERN\n" \
" See https://communities.informatica.com/infakb/faq/5/Pages/80075.aspx\n" \
" for guidelines on using wildcard topics. Also make sure the statistics\n" \
" topic namespace is disjoint from the data topic namespace.\n" \
MONMODULEOPTS_UDP_PRELUDE \
" port=NUM receive on UDP port NUM\n" \
" default is 2933\n" \
" interface=IP receive multicast on interface IP\n" \
" default is INADDR_ANY (0.0.0.0)\n" \
" mcgroup=GRP receive on multicast group GRP\n" \
MONMODULEOPTS_CSV_PRELUDE \
" separator=CHAR separate CSV fields with character CHAR\n" \
" defaults to `,'\n" \
" Don\'t use a semicolon!\n" \
" passthrough=VAL VAL may be `off', `on' or 'convert'\n" \
" defaults to `off'\n" \
MONMODULEOPTS_PB_PRELUDE \
" passthrough=VAL VAL may be `off', `on' or 'convert'\n" \
" defaults to `off'\n"
#define MONOPTS_PRELUDE \
"\n" \
"Monitoring options:\n"
#define MONOPTS_COMMON_ONLY \
" --monitor-ctx=NUM monitor context every NUM seconds\n" \
" --monitor-transport=TRANS use monitor transport module TRANS\n" \
" TRANS may be `lbm', `lbmsnmp', or `udp', default is `lbm'\n" \
" --monitor-transport-opts=OPTS use OPTS as transport module options\n" \
" --monitor-format=FMT use monitor format module FMT\n" \
" FMT may be `csv' or `pb'\n" \
" --monitor-format-opts=OPTS use OPTS as format module options\n" \
" --monitor-appid=ID use ID as application ID string\n" \
#define MONOPTS_COMMON \
MONOPTS_PRELUDE \
MONOPTS_COMMON_ONLY
#define MONOPTS_ALL \
MONOPTS_PRELUDE \
" --monitor-rcv=NUM monitor receiver every NUM seconds\n" \
" --monitor-src=NUM monitor source every NUM seconds\n" \
MONOPTS_COMMON_ONLY
#define MONOPTS_RECEIVER \
MONOPTS_PRELUDE \
" --monitor-rcv=NUM monitor receiver every NUM seconds\n" \
MONOPTS_COMMON_ONLY
#define MONOPTS_SENDER \
MONOPTS_PRELUDE \
" --monitor-src=NUM monitor source every NUM seconds\n" \
MONOPTS_COMMON_ONLY
#define MONOPTS_EVENT_QUEUE \
" --monitor-evq=NUM monitor event queue every NUM seconds\n"
#endif