Skip to content

Commit

Permalink
statuspal: Handle scheduled state
Browse files Browse the repository at this point in the history
  • Loading branch information
markuslf committed Sep 20, 2023
1 parent 7102167 commit aaabf71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 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__ = '2023091402'
__version__ = '2023092001'

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 @@ -109,7 +109,7 @@ def concat_values(mydict, hierarchy):
def statuspalstate2state(sps):
"""Convert Statuspal's incident level to the Nagios world.
"""
if sps is None:
if sps is None or sps == 'scheduled':
return STATE_OK
if sps == 'minor':
return STATE_WARN
Expand Down

0 comments on commit aaabf71

Please sign in to comment.