After using zabbix-cli init to set the url, zabbix-cli login --token XXX keeps asking for username and password. Setting the token manually in the config file works.
From a cursory look at the code, it seems both init_config and login do not containt the right logic to work correctly in this scenario.
After using
zabbix-cli init
to set the url,zabbix-cli login --token XXX
keeps asking for username and password. Setting the token manually in the config file works.From a cursory look at the code, it seems both
init_config
andlogin
do not containt the right logic to work correctly in this scenario.