Skip to content

Instantly share code, notes, and snippets.

@tgerla
Created September 29, 2015 13:51
Show Gist options
  • Save tgerla/a130489be10e46f66d12 to your computer and use it in GitHub Desktop.
Save tgerla/a130489be10e46f66d12 to your computer and use it in GitHub Desktop.
if self.zabbix_server and self.zabbix_username:
api = ZabbixAPI(server=self.zabbix_server)
api.login(user=self.zabbix_username, password=self.zabbix_password)
if self.options.host:
data = self.get_host(api, self.options.host)
print(json.dumps(data, indent=2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment