Skip to content

Instantly share code, notes, and snippets.

@danudey danudey/gist:163503
Created Aug 6, 2009

Embed
What would you like to do?
>>> 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
You can’t perform that action at this time.