|
5 | 5 | "--always-ok": { |
6 | 6 | "set_if": "$matomo_version_always_ok$" |
7 | 7 | }, |
8 | | - "--cache-expire": { |
9 | | - "value": "$matomo_version_cache_expire$" |
| 8 | + "--check-major": { |
| 9 | + "set_if": "$matomo_version_check_major$" |
| 10 | + }, |
| 11 | + "--check-minor": { |
| 12 | + "set_if": "$matomo_version_check_minor$" |
| 13 | + }, |
| 14 | + "--check-patch": { |
| 15 | + "set_if": "$matomo_version_check_patch$" |
| 16 | + }, |
| 17 | + "--insecure": { |
| 18 | + "set_if": "$matomo_version_insecure$" |
| 19 | + }, |
| 20 | + "--no-proxy": { |
| 21 | + "set_if": "$matomo_version_no_proxy$" |
| 22 | + }, |
| 23 | + "--offset-eol": { |
| 24 | + "value": "$matomo_version_offset_eol$" |
10 | 25 | }, |
11 | 26 | "--path": { |
12 | 27 | "value": "$matomo_version_path$" |
| 28 | + }, |
| 29 | + "--timeout": { |
| 30 | + "value": "$matomo_version_timeout$" |
13 | 31 | } |
14 | 32 | }, |
15 | 33 | "command": "/usr/lib64/nagios/plugins/matomo-version", |
|
29 | 47 | "datafield_id": 3, |
30 | 48 | "is_required": "n", |
31 | 49 | "var_filter": null |
| 50 | + }, |
| 51 | + { |
| 52 | + "datafield_id": 4, |
| 53 | + "is_required": "n", |
| 54 | + "var_filter": null |
| 55 | + }, |
| 56 | + { |
| 57 | + "datafield_id": 5, |
| 58 | + "is_required": "n", |
| 59 | + "var_filter": null |
| 60 | + }, |
| 61 | + { |
| 62 | + "datafield_id": 6, |
| 63 | + "is_required": "n", |
| 64 | + "var_filter": null |
| 65 | + }, |
| 66 | + { |
| 67 | + "datafield_id": 7, |
| 68 | + "is_required": "n", |
| 69 | + "var_filter": null |
| 70 | + }, |
| 71 | + { |
| 72 | + "datafield_id": 8, |
| 73 | + "is_required": "n", |
| 74 | + "var_filter": null |
| 75 | + }, |
| 76 | + { |
| 77 | + "datafield_id": 9, |
| 78 | + "is_required": "n", |
| 79 | + "var_filter": null |
32 | 80 | } |
33 | 81 | ], |
34 | 82 | "imports": [], |
|
59 | 107 | "enable_flapping": null, |
60 | 108 | "enable_notifications": true, |
61 | 109 | "enable_passive_checks": null, |
62 | | - "enable_perfdata": null, |
| 110 | + "enable_perfdata": true, |
63 | 111 | "event_command": null, |
64 | 112 | "fields": [], |
65 | 113 | "flapping_threshold_high": null, |
|
72 | 120 | "tpl-service-generic" |
73 | 121 | ], |
74 | 122 | "max_check_attempts": 5, |
75 | | - "notes": "This plugin lets you track if server updates are available.", |
| 123 | + "notes": "Tracks if Matomo is EOL.", |
76 | 124 | "notes_url": "https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/matomo-version", |
77 | 125 | "object_name": "tpl-service-matomo-version", |
78 | 126 | "object_type": "template", |
79 | | - "retry_interval": 3600, |
| 127 | + "retry_interval": 300, |
80 | 128 | "service_set": null, |
81 | 129 | "template_choice": null, |
82 | 130 | "use_agent": null, |
83 | 131 | "use_var_overrides": null, |
84 | 132 | "vars": { |
85 | 133 | "criticality": "C", |
86 | 134 | "matomo_version_always_ok": false, |
87 | | - "matomo_version_cache_expire": 24, |
88 | | - "matomo_version_path": "/var/www/html/matomo" |
| 135 | + "matomo_version_check_major": false, |
| 136 | + "matomo_version_check_minor": false, |
| 137 | + "matomo_version_check_patch": false, |
| 138 | + "matomo_version_insecure": false, |
| 139 | + "matomo_version_no_proxy": false, |
| 140 | + "matomo_version_offset_eol": -30, |
| 141 | + "matomo_version_path": "/var/www/html/matomo", |
| 142 | + "matomo_version_timeout": 8 |
89 | 143 | }, |
90 | 144 | "volatile": null, |
91 | 145 | "zone": null, |
|
103 | 157 | "uuid": "c82972e6-2b6b-41ed-9d25-891a43cbf9d4" |
104 | 158 | }, |
105 | 159 | "2": { |
106 | | - "varname": "matomo_version_cache_expire", |
107 | | - "caption": "Matomo Version: Cache Expire", |
108 | | - "description": "The amount of time after which the update check cache expires, in hours.", |
| 160 | + "varname": "matomo_version_check_major", |
| 161 | + "caption": "Matomo Version: Check Major?", |
| 162 | + "description": "Alert me when there is a new major release available, even if the current version of my product is not EOL. Example: Notify when I run v26 (not yet EOL) and v27 is available.", |
| 163 | + "datatype": "Icinga\\Module\\Director\\DataType\\DataTypeBoolean", |
| 164 | + "format": null, |
| 165 | + "settings": {}, |
| 166 | + "uuid": "79a50cf9-6b49-49c6-a43b-c979577107d2" |
| 167 | + }, |
| 168 | + "3": { |
| 169 | + "varname": "matomo_version_check_minor", |
| 170 | + "caption": "Matomo Version: Check Minor?", |
| 171 | + "description": "Alert me when there is a new major.minor release available, even if the current version of my product is not EOL. Example: Notify when I run v26.2 (not yet EOL) and v26.3 is available.", |
| 172 | + "datatype": "Icinga\\Module\\Director\\DataType\\DataTypeBoolean", |
| 173 | + "format": null, |
| 174 | + "settings": {}, |
| 175 | + "uuid": "6b140576-61d6-4030-bdca-b58070839d0c" |
| 176 | + }, |
| 177 | + "4": { |
| 178 | + "varname": "matomo_version_check_patch", |
| 179 | + "caption": "Matomo Version: Check Patch?", |
| 180 | + "description": "Alert me when there is a new major.minor.patch release available, even if the current version of my product is not EOL. Example: Notify when I run v26.2.7 (not yet EOL) and v26.2.8 is available.", |
| 181 | + "datatype": "Icinga\\Module\\Director\\DataType\\DataTypeBoolean", |
| 182 | + "format": null, |
| 183 | + "settings": {}, |
| 184 | + "uuid": "91ada52d-eee6-4783-8ac2-0d960648cafb" |
| 185 | + }, |
| 186 | + "5": { |
| 187 | + "varname": "matomo_version_insecure", |
| 188 | + "caption": "Matomo Version: Insecure?", |
| 189 | + "description": "This option explicitly allows to perform \"insecure\" SSL connections.", |
| 190 | + "datatype": "Icinga\\Module\\Director\\DataType\\DataTypeBoolean", |
| 191 | + "format": null, |
| 192 | + "settings": {}, |
| 193 | + "uuid": "27093ed0-357c-42c7-980a-5509becee7a5" |
| 194 | + }, |
| 195 | + "6": { |
| 196 | + "varname": "matomo_version_no_proxy", |
| 197 | + "caption": "Matomo Version: No Proxy?", |
| 198 | + "description": "Do not use a proxy.", |
| 199 | + "datatype": "Icinga\\Module\\Director\\DataType\\DataTypeBoolean", |
| 200 | + "format": null, |
| 201 | + "settings": {}, |
| 202 | + "uuid": "f57d21c5-0e31-473b-8e04-1194c36b9352" |
| 203 | + }, |
| 204 | + "7": { |
| 205 | + "varname": "matomo_version_offset_eol", |
| 206 | + "caption": "Matomo Version: Offset Eol", |
| 207 | + "description": "Alert me n days before (\"-30\") or after an EOL date (\"30\" or \"+30\").", |
109 | 208 | "datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString", |
110 | 209 | "format": null, |
111 | 210 | "settings": { |
112 | 211 | "visibility": "visible" |
113 | 212 | }, |
114 | | - "uuid": "c91ff76f-9693-49dd-83a0-5fb1cf8a3bf6" |
| 213 | + "uuid": "c3118a6b-884f-44d4-bfe2-17c392897623" |
115 | 214 | }, |
116 | | - "3": { |
| 215 | + "8": { |
117 | 216 | "varname": "matomo_version_path", |
118 | 217 | "caption": "Matomo Version: Path", |
119 | 218 | "description": "Local path to your Matomo/Piwik installation, typically within your Webserver's Document Root.", |
|
123 | 222 | "visibility": "visible" |
124 | 223 | }, |
125 | 224 | "uuid": "ed35a177-80eb-4104-9545-4a90f600a31b" |
| 225 | + }, |
| 226 | + "9": { |
| 227 | + "varname": "matomo_version_timeout", |
| 228 | + "caption": "Matomo Version: Timeout", |
| 229 | + "description": "Network timeout in seconds.", |
| 230 | + "datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString", |
| 231 | + "format": null, |
| 232 | + "settings": { |
| 233 | + "visibility": "visible" |
| 234 | + }, |
| 235 | + "uuid": "547e3c2a-36a3-48f8-afa3-54eaff46f623" |
126 | 236 | } |
127 | 237 | } |
128 | 238 | } |
0 commit comments