Advertisement
Guest User

Untitled

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