Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions check_springboot_actuator.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def handle_version_2():
helper.status(critical)
helper.add_summary('could not fetch health data: {}'.format(err))
else:
status = json_data['status']
status = json_data['status']['code']
if status == 'UP':
helper.status(ok)
elif status in ('DOWN', 'OUT_OF_SERVICE'):
Expand Down Expand Up @@ -167,7 +167,7 @@ def handle_version_2():

if version == 1:
handle_version_1()
if version == 2:
if version == 2 or version == 3:
handle_version_2()

helper.exit()