Skip to content

Commit

Permalink
statuspal: Improve output
Browse files Browse the repository at this point in the history
  • Loading branch information
markuslf committed Sep 20, 2023
1 parent aaabf71 commit 3af6984
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions check-plugins/statuspal/statuspal
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ from lib.globals import (STATE_CRIT, STATE_OK, # pylint: disable=C0413
STATE_UNKNOWN, STATE_WARN)

__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
__version__ = '2023092001'
__version__ = '2023092002'

DESCRIPTION = """Statuspal is a status page provider from Germany. This check plugin gets
the summary of a Statuspal status page, checks its status, services,
Expand Down Expand Up @@ -157,7 +157,10 @@ def main():
if state == STATE_CRIT:
msg += 'Major incidents @ '
if state == STATE_UNKNOWN:
msg += 'Got unknown state from {} for '.format(args.URL)
msg += 'Got state "{}" from {} for '.format(
result['status_page']['current_incident_type'],
args.URL,
)
msg += '{} ({}, TZ {})'.format(
result['status_page']['name'],
result['status_page']['url'],
Expand Down

0 comments on commit 3af6984

Please sign in to comment.