zalando-zmon / zmon-cli

ZMON Command Line Interface
http://zmon.readthedocs.org/en/latest/developer/zmon-cli.html
Other
9 stars 9 forks source link

Failed to intitialize ZMON client #92

Closed shudhanshh closed 5 years ago

shudhanshh commented 5 years ago

I have installed zmon cli and configured zmon contoller and can access it via gui by port forwarding it to my local machine but cant connect via zmon cli, i have configured zmon ui on GKE. I'm accessing zmon ui as https://localhost:8444 Please help me out, how can I configure using CLI ?


Traceback (most recent call last): File "/home/shudhanshu/.local/bin/zmon", line 10, in sys.exit(main()) File "/home/shudhanshu/.local/lib/python3.7/site-packages/zmon_cli/main.py", line 9, in main cli() File "/home/shudhanshu/.local/lib/python3.7/site-packages/click/core.py", line 764, in call return self.main(args, kwargs) File "/home/shudhanshu/.local/lib/python3.7/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/home/shudhanshu/.local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/shudhanshu/.local/lib/python3.7/site-packages/click/core.py", line 1114, in invoke return Command.invoke(self, ctx) File "/home/shudhanshu/.local/lib/python3.7/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, ctx.params) File "/home/shudhanshu/.local/lib/python3.7/site-packages/click/core.py", line 555, in invoke return callback(args, *kwargs) File "/home/shudhanshu/.local/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), args, **kwargs) File "/home/shudhanshu/.local/lib/python3.7/site-packages/zmon_cli/cmds/entity.py", line 37, in entities client = get_client(ctx.obj.config) File "/home/shudhanshu/.local/lib/python3.7/site-packages/zmon_cli/cmds/command.py", line 49, in get_client raise RuntimeError('Failed to intitialize ZMON client. Invalid configuration!') RuntimeError: Failed to intitialize ZMON client. Invalid configuration!

mohabusama commented 5 years ago

Have you configured password authentication in ZMON backend?

shudhanshh commented 5 years ago

Yes via GitHub authentication

On Wed, 31 Jul, 2019, 2:22 PM Mohab Usama, notifications@github.com wrote:

Have you configured password authentication in ZMON backend?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zalando-zmon/zmon-cli/issues/92?email_source=notifications&email_token=AF7AVNHOH63GRP3QP4XII4DQCFHDHA5CNFSM4IIEHWU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3GR7GQ#issuecomment-516759450, or mute the thread https://github.com/notifications/unsubscribe-auth/AF7AVNBYHNRKV6ZWG7VH6VTQCFHDHANCNFSM4IIEHWUQ .

mohabusama commented 5 years ago

You will need to set your Github token in ~/.zmon-cli.yaml or configure via running zmon config and set token after answering Y to Github Authentication prompt.