Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def tr_get(config,alarm,section,not_work):
- try:
- zabbix_server = config.get(section, 'server')
- username = config.get(section, 'user')
- password = config.get(section, 'pass')
- zapi = ZabbixAPI(zabbix_server)
- zapi.session.auth = (username, password)
- zapi.session.verify = False
- zapi.timeout = 5.1
- zapi.login(username, password)
- ...
- zapi.session.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement