Skip to content

Commit

Permalink
Add option to check SSL certs for the Zabbix API
Browse files Browse the repository at this point in the history
  • Loading branch information
vulnersCom committed Jun 14, 2018
1 parent c687839 commit db70613
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ztc_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def z_host_create(zbx_host, zbx_vname, group_id, appl_name, lld_name, lld_key, i

try:
zapi = ZabbixAPI(c.zbx_url, timeout=5)
zapi.session.verify = c.zbx_verify_ssl_certs
zapi.login(c.zbx_user, c.zbx_pass)
zapi_ver = zapi.api_version()
print('Connected to Zabbix API v.{zapi_ver}'.format(zapi_ver=zapi.api_version()))
Expand Down

0 comments on commit db70613

Please sign in to comment.