Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1.     for item in json_data:
  2.         item_status = item['status']
  3.         helper.add_summary(item)
  4.         if helper.get_status() != critical and item_status == 'UNKNOWN':
  5.             helper.status(unknown)
  6.         elif item_status in ('DOWN', 'OUT_OF_SERVICE'):
  7.             helper.status(critical)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement