Skip to content

Instantly share code, notes, and snippets.

@danudey
Created August 6, 2009 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danudey/163503 to your computer and use it in GitHub Desktop.
Save danudey/163503 to your computer and use it in GitHub Desktop.
>>> for state in p.states:
... print state
...
{'checkName': 'webserver 1', 'checkState': 'CHECK_UP', 'lastCheckTime': (2009, 8, 6, 19, 3, 13.0)}
{'checkName': 'webserver 1 ssl', 'checkState': 'CHECK_UP', 'lastCheckTime': (2009, 8, 6, 19, 2, 59.0)}
{'checkName': 'imap server', 'checkState': 'CHECK_UP', 'lastCheckTime': (2009, 8, 6, 19, 3, 27.0)}
{'checkName': 'incoming smtp', 'checkState': 'CHECK_UP', 'lastCheckTime': (2009, 8, 6, 18, 58, 39.0)}
{'checkName': 'outgoing smtp', 'checkState': 'CHECK_UP', 'lastCheckTime': (2009, 8, 6, 18, 57, 41.0)}
{'checkName': 'DNS server 1', 'checkState': 'CHECK_UP', 'lastCheckTime': (2009, 8, 6, 19, 2, 38.0)}
{'checkName': 'DNS server 2', 'checkState': 'CHECK_UP', 'lastCheckTime': (2009, 8, 6, 19, 2, 39.0)}
{'checkName': 'staging webserver', 'checkState': 'CHECK_UP', 'lastCheckTime': (2009, 8, 6, 19, 2, 40.0)}
{'checkName': 'staging DB server', 'checkState': 'CHECK_UP', 'lastCheckTime': (2009, 8, 6, 19, 2, 39.0)}
{'checkName': 'webserver 2', 'checkState': 'CHECK_UP', 'lastCheckTime': (2009, 8, 6, 19, 3, 3.0)}
{'checkName': 'webserver 3', 'checkState': 'CHECK_UP', 'lastCheckTime': (2009, 8, 6, 18, 53, 0.0)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment