Skip to content

Commit 4d49f32

Browse files
committed
refactor(infomaniak-events): increase timeout from 8 to 28 secs
1 parent bb1a15c commit 4d49f32

5 files changed

Lines changed: 11 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Monitoring Plugins:
5353
* gitlab-health: increase timeout from 3 to 8 secs
5454
* gitlab-liveness: increase timeout from 3 to 8 secs
5555
* gitlab-readiness: increase timeout from 3 to 8 secs
56+
* infomaniak-events: increase timeout from 8 to 28 secs
5657
* journald-usage: also print SystemMaxUse and SystemKeepFree
5758
* pip-updates: modernize code
5859
* rocketchat-stats: improve output and docs a little bit

check-plugins/infomaniak-events/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Links:
2626
* API Tokens: <https://manager.infomaniak.com/v3/$ACCOUNT_ID/ng/accounts/token>
2727
* Infomaniak Status Page: <https://infomaniakstatus.com/>
2828

29+
Hints:
30+
31+
* Might take more than 10 seconds to execute.
32+
2933

3034
## Fact Sheet
3135

@@ -60,7 +64,7 @@ options:
6064
--service SERVICE Only report this service category (repeating).
6165
Example: `--service=swiss_backup
6266
--service=public_cloud`. Default: none (so report all)
63-
--timeout TIMEOUT Network timeout in seconds. Default: 8 (seconds)
67+
--timeout TIMEOUT Network timeout in seconds. Default: 28 (seconds)
6468
--token TOKEN Infomaniak API token
6569
--test TEST For unit tests. Needs "path-to-stdout-file,path-to-
6670
stderr-file,expected-retc".

check-plugins/infomaniak-events/icingaweb2-module-director/infomaniak-events.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"methods_execute": "PluginCheck",
7171
"object_name": "cmd-check-infomaniak-events",
7272
"object_type": "object",
73-
"timeout": "10",
73+
"timeout": 30,
7474
"vars": {},
7575
"zone": null,
7676
"uuid": "38b349d1-57b9-4b6d-a0fe-19072a443641"
@@ -121,7 +121,7 @@
121121
"infomaniak_events_ignore_regex": [],
122122
"infomaniak_events_insecure": false,
123123
"infomaniak_events_no_proxy": false,
124-
"infomaniak_events_timeout": 8
124+
"infomaniak_events_timeout": 28
125125
},
126126
"volatile": null,
127127
"zone": null,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
overwrites:
2+
'["Command"]["cmd-check-infomaniak-events"]["timeout"]': 30
23
'["ServiceTemplate"]["tpl-service-infomaniak-events"]["enable_perfdata"]': true

check-plugins/infomaniak-events/infomaniak-events

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ from lib.globals import (STATE_OK, STATE_UNKNOWN, # pylint: disable=C0413
2727
STATE_CRIT, STATE_WARN)
2828

2929
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
30-
__version__ = '2025022101'
30+
__version__ = '2025081901'
3131

3232
DESCRIPTION = """Informs you about open events at Infomaniak."""
3333

3434
DEFAULT_INSECURE = False
3535
DEFAULT_NO_PROXY = False
36-
DEFAULT_TIMEOUT = 8
36+
DEFAULT_TIMEOUT = 28
3737

3838

3939
def parse_args():

0 commit comments

Comments
 (0)