We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f041586 commit 4e30ad3Copy full SHA for 4e30ad3
check-plugins/icinga-topflap-services/icinga-topflap-services
@@ -281,11 +281,10 @@ def main():
281
state = lib.base.get_worst(state, data[i]['state'])
282
283
# build the message
284
- state_messages = {
+ msg = {
285
STATE_CRIT: 'There are critical errors.',
286
STATE_WARN: 'There are warnings.'
287
- }
288
- msg = state_messages.get(state, 'Everything is ok.')
+ }.get(state, 'Everything is ok.')
289
msg += f' (lookback={lib.human.seconds2human(args.LOOKBACK)} warn={args.WARN} crit={args.CRIT})'
290
if data:
291
msg += '\n\n' + lib.base.get_table(
0 commit comments