|
5 | 5 | "--always-ok": { |
6 | 6 | "set_if": "$redis_status_always_ok$" |
7 | 7 | }, |
| 8 | + "--cacert": { |
| 9 | + "value": "$redis_status_cacert$" |
| 10 | + }, |
8 | 11 | "--critical": { |
9 | 12 | "value": "$redis_status_critical$" |
10 | 13 | }, |
|
38 | 41 | "--tls": { |
39 | 42 | "set_if": "$redis_status_tls$" |
40 | 43 | }, |
| 44 | + "--username": { |
| 45 | + "value": "$redis_status_username$" |
| 46 | + }, |
| 47 | + "--verbose": { |
| 48 | + "set_if": "$redis_status_verbose$" |
| 49 | + }, |
41 | 50 | "--warning": { |
42 | 51 | "value": "$redis_status_warning$" |
43 | 52 | } |
|
109 | 118 | "datafield_id": 13, |
110 | 119 | "is_required": "n", |
111 | 120 | "var_filter": null |
| 121 | + }, |
| 122 | + { |
| 123 | + "datafield_id": 14, |
| 124 | + "is_required": "n", |
| 125 | + "var_filter": null |
| 126 | + }, |
| 127 | + { |
| 128 | + "datafield_id": 15, |
| 129 | + "is_required": "n", |
| 130 | + "var_filter": null |
| 131 | + }, |
| 132 | + { |
| 133 | + "datafield_id": 16, |
| 134 | + "is_required": "n", |
| 135 | + "var_filter": null |
112 | 136 | } |
113 | 137 | ], |
114 | 138 | "imports": [], |
|
164 | 188 | "vars": { |
165 | 189 | "criticality": "C", |
166 | 190 | "redis_status_always_ok": false, |
| 191 | + "redis_status_cacert": "/etc/pki/tls/certs/rootCA.pem", |
167 | 192 | "redis_status_hostname": "127.0.0.1", |
168 | 193 | "redis_status_ignore_maxmemory0": false, |
169 | 194 | "redis_status_ignore_overcommit": false, |
|
172 | 197 | "redis_status_ignore_thp": false, |
173 | 198 | "redis_status_port": "6379", |
174 | 199 | "redis_status_tls": false, |
| 200 | + "redis_status_verbose": false, |
175 | 201 | "redis_status_warning": 90 |
176 | 202 | }, |
177 | 203 | "volatile": null, |
|
190 | 216 | "uuid": "79d5910d-c4bf-4281-85ef-4f34e8f04614" |
191 | 217 | }, |
192 | 218 | "2": { |
| 219 | + "varname": "redis_status_cacert", |
| 220 | + "caption": "Redis Status: Cacert", |
| 221 | + "description": "CA Certificate file to verify with. Needs `--tls`.", |
| 222 | + "datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString", |
| 223 | + "format": null, |
| 224 | + "settings": { |
| 225 | + "visibility": "visible" |
| 226 | + }, |
| 227 | + "uuid": "16720bf0-7d82-4588-8055-57b0ee443234" |
| 228 | + }, |
| 229 | + "3": { |
193 | 230 | "varname": "redis_status_critical", |
194 | 231 | "caption": "Redis Status: Critical", |
195 | | - "description": "Set the CRIT threshold as a percentage.", |
| 232 | + "description": "Set the CRIT memory usage threshold as a percentage.", |
196 | 233 | "datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString", |
197 | 234 | "format": null, |
198 | 235 | "settings": { |
199 | 236 | "visibility": "visible" |
200 | 237 | }, |
201 | 238 | "uuid": "35c762a1-c673-4a3e-bf30-68770d52b14d" |
202 | 239 | }, |
203 | | - "3": { |
| 240 | + "4": { |
204 | 241 | "varname": "redis_status_hostname", |
205 | 242 | "caption": "Redis Status: Hostname", |
206 | 243 | "description": "Redis server hostname.", |
|
211 | 248 | }, |
212 | 249 | "uuid": "f29df302-80f1-4c0b-b835-396fe1f06b10" |
213 | 250 | }, |
214 | | - "4": { |
| 251 | + "5": { |
215 | 252 | "varname": "redis_status_ignore_maxmemory0", |
216 | 253 | "caption": "Redis Status: Ignore Maxmemory0?", |
217 | 254 | "description": "Don't warn about redis' maxmemory=0.", |
|
220 | 257 | "settings": {}, |
221 | 258 | "uuid": "53a21ea5-e1e4-4eac-8fd8-96baeab59f94" |
222 | 259 | }, |
223 | | - "5": { |
| 260 | + "6": { |
224 | 261 | "varname": "redis_status_ignore_overcommit", |
225 | 262 | "caption": "Redis Status: Ignore Overcommit?", |
226 | 263 | "description": "Don't warn about vm.overcommit_memory<>1.", |
|
229 | 266 | "settings": {}, |
230 | 267 | "uuid": "16bca65f-dc6d-4655-a11e-f783cb3fe427" |
231 | 268 | }, |
232 | | - "6": { |
| 269 | + "7": { |
233 | 270 | "varname": "redis_status_ignore_somaxconn", |
234 | 271 | "caption": "Redis Status: Ignore Somaxconn?", |
235 | 272 | "description": "Don't warn about net.core.somaxconn < net.ipv4.tcp_max_syn_backlog.", |
|
238 | 275 | "settings": {}, |
239 | 276 | "uuid": "b36373f6-40b3-46a6-b074-ade8326cdc82" |
240 | 277 | }, |
241 | | - "7": { |
| 278 | + "8": { |
242 | 279 | "varname": "redis_status_ignore_sync_partial_err", |
243 | 280 | "caption": "Redis Status: Ignore Sync Partial Err?", |
244 | 281 | "description": "Don't warn about partial sync errors (because if you have an asynchronous replication, a small number of \"denied partial resync requests\" might be normal).", |
|
247 | 284 | "settings": {}, |
248 | 285 | "uuid": "6b089856-43d7-4008-94d8-478fbacc7730" |
249 | 286 | }, |
250 | | - "8": { |
| 287 | + "9": { |
251 | 288 | "varname": "redis_status_ignore_thp", |
252 | 289 | "caption": "Redis Status: Ignore Thp?", |
253 | 290 | "description": "Don't warn about transparent huge page setting.", |
|
256 | 293 | "settings": {}, |
257 | 294 | "uuid": "c7300af7-f285-4012-a160-2647a5a58a2b" |
258 | 295 | }, |
259 | | - "9": { |
| 296 | + "10": { |
260 | 297 | "varname": "redis_status_password", |
261 | 298 | "caption": "Redis Status: Password", |
262 | 299 | "description": "Password to use when connecting to the redis server.", |
|
267 | 304 | }, |
268 | 305 | "uuid": "eabaadd8-f4c3-4313-afee-cfea175f93aa" |
269 | 306 | }, |
270 | | - "10": { |
| 307 | + "11": { |
271 | 308 | "varname": "redis_status_port", |
272 | 309 | "caption": "Redis Status: Port", |
273 | 310 | "description": "Redis server port.", |
|
278 | 315 | }, |
279 | 316 | "uuid": "15c740aa-0173-4b4f-b139-b1595d8052c8" |
280 | 317 | }, |
281 | | - "11": { |
| 318 | + "12": { |
282 | 319 | "varname": "redis_status_socket", |
283 | 320 | "caption": "Redis Status: Socket", |
284 | 321 | "description": "Redis server socket (overrides hostname and port).", |
|
289 | 326 | }, |
290 | 327 | "uuid": "bf84ac19-1b7a-406f-9699-08a66b0bd733" |
291 | 328 | }, |
292 | | - "12": { |
| 329 | + "13": { |
293 | 330 | "varname": "redis_status_tls", |
294 | 331 | "caption": "Redis Status: Tls?", |
295 | 332 | "description": "Establish a secure TLS connection to Redis.", |
|
298 | 335 | "settings": {}, |
299 | 336 | "uuid": "5390b14b-2ee3-4ad5-a1f0-dc8d94e1a5db" |
300 | 337 | }, |
301 | | - "13": { |
| 338 | + "14": { |
| 339 | + "varname": "redis_status_username", |
| 340 | + "caption": "Redis Status: Username", |
| 341 | + "description": "Username to use when connecting to the Redis server.", |
| 342 | + "datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString", |
| 343 | + "format": null, |
| 344 | + "settings": { |
| 345 | + "visibility": "visible" |
| 346 | + }, |
| 347 | + "uuid": "00b3c2c2-db14-46da-a0fe-27ac0b3d77ba" |
| 348 | + }, |
| 349 | + "15": { |
| 350 | + "varname": "redis_status_verbose", |
| 351 | + "caption": "Redis Status: Verbose?", |
| 352 | + "description": "Makes this plugin verbose during the operation. Useful for debugging and seeing what's going on under the hood.", |
| 353 | + "datatype": "Icinga\\Module\\Director\\DataType\\DataTypeBoolean", |
| 354 | + "format": null, |
| 355 | + "settings": {}, |
| 356 | + "uuid": "b810b444-d17e-4609-b579-0717285f17d1" |
| 357 | + }, |
| 358 | + "16": { |
302 | 359 | "varname": "redis_status_warning", |
303 | 360 | "caption": "Redis Status: Warning", |
304 | | - "description": "Set the WARN threshold as a percentage.", |
| 361 | + "description": "Set the WARN memory usage threshold as a percentage.", |
305 | 362 | "datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString", |
306 | 363 | "format": null, |
307 | 364 | "settings": { |
|
0 commit comments