0

I am using pyzabbix module to use the Zabbix API, but is there any way to login the Zabbix API without giving the username and password in Python script? Like any API token which serves the purpose.

Richlv
  • 3,763
  • 1
  • 16
  • 19
Valakatla Ashok
  • 279
  • 1
  • 2
  • 12

2 Answers2

0

There are no API tokens or similar access methods in Zabbix currently.

Richlv
  • 3,763
  • 1
  • 16
  • 19
0

There is not, but you should use an environment variable (see environment variable in python) to store the password/token anyway, in order to avoid having it inside the code in cleartext. The environment is visible to the user only, and is usually initialized from a protected file (0600 permission in unix style), or a masked CI/CD variable.

Iron Bishop
  • 1,399
  • 1
  • 5
  • 14