Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for item in json_data:
- item_status = item['status']
- helper.add_summary(item)
- if helper.get_status() != critical and item_status == 'UNKNOWN':
- helper.status(unknown)
- elif item_status in ('DOWN', 'OUT_OF_SERVICE'):
- helper.status(critical)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement