Skip to content

Commit 3af6984

Browse files
committed
statuspal: Improve output
1 parent aaabf71 commit 3af6984

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

check-plugins/statuspal/statuspal

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

2828
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
29-
__version__ = '2023092001'
29+
__version__ = '2023092002'
3030

3131
DESCRIPTION = """Statuspal is a status page provider from Germany. This check plugin gets
3232
the summary of a Statuspal status page, checks its status, services,
@@ -157,7 +157,10 @@ def main():
157157
if state == STATE_CRIT:
158158
msg += 'Major incidents @ '
159159
if state == STATE_UNKNOWN:
160-
msg += 'Got unknown state from {} for '.format(args.URL)
160+
msg += 'Got state "{}" from {} for '.format(
161+
result['status_page']['current_incident_type'],
162+
args.URL,
163+
)
161164
msg += '{} ({}, TZ {})'.format(
162165
result['status_page']['name'],
163166
result['status_page']['url'],

0 commit comments

Comments
 (0)