File tree 2 files changed +7
-3
lines changed
check-plugins/infomaniak-events
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ Monitoring Plugins:
121
121
* fail2ban: More compact output (closes #141 )
122
122
* file-size: fix help text
123
123
* fs-inodes: Check inode usage on real and different disks. ` --mount ` parameter is deprecated.
124
+ * infomaniak-events: return CRIT in case of critical events
124
125
* keycloak-version: Check Keycloak Version via REST API ([ #748 ] ( https://github.com/Linuxfabrik/monitoring-plugins/issues/748 ) )
125
126
* librenms-alerts, librenms-health: Compact output is the new default and shows non-OK only
126
127
* mysql-thread-cache: DB daemon must have been running for an hour before the cache hit rate is measured.
Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ import lib.lftest # pylint: disable=C0413
24
24
import lib .time # pylint: disable=C0413
25
25
import lib .txt # pylint: disable=C0413
26
26
from lib .globals import (STATE_OK , STATE_UNKNOWN , # pylint: disable=C0413
27
- STATE_WARN )
27
+ STATE_CRIT , STATE_WARN )
28
28
29
29
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
30
- __version__ = '2025021501 '
30
+ __version__ = '2025022101 '
31
31
32
32
DESCRIPTION = """Informs you about open events at Infomaniak."""
33
33
@@ -179,7 +179,10 @@ def main():
179
179
title ,
180
180
services ,
181
181
)
182
- state = STATE_WARN
182
+ if event .get ('type' ).lower () == 'critical' :
183
+ state = STATE_CRIT
184
+ else :
185
+ state = STATE_WARN
183
186
perfdata = perfdata .replace ('=0' , '=1' )
184
187
185
188
table_data .append ({
You can’t perform that action at this time.
0 commit comments