Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE] amonagent can't connect to Amon API #216

Open
MinasWang opened this issue Dec 22, 2018 · 0 comments
Open

[ISSUE] amonagent can't connect to Amon API #216

MinasWang opened this issue Dec 22, 2018 · 0 comments

Comments

@MinasWang
Copy link

hi guys,

i just finished installing amon-server on ubuntu 16.04LTS, and the amonagent as well.

but when i try amonagent -test, it shows following error.
INFO[0006] Sending data to http://172.19.13.11/api/system/v2/?api_key=693acf08cc5e9def859369d575796332cc27bf42

FATA[0006] received bad status code, 405

also "service amonagent status" showing error:
root@iZuf6hdwryap04ugtjbkokZ:/var/log# service amonagent status
● amonagent.service - Starts and stops amonagent
Loaded: loaded (/lib/systemd/system/amonagent.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2018-12-22 21:09:16 CST; 26min ago
Docs: https://www.amon.cx/docs
Main PID: 17599 (amonagent)
CGroup: /system.slice/amonagent.service
└─17599 /usr/bin/amonagent -pidfile /var/run/amonagent/amonagent.pid

Dec 22 21:32:19 iZuf6hdwryap04ugtjbkokZ amonagent[17599]: time="2018-12-22T21:32:19+08:00" level=info msg="Can not collect and send metrics, exiting: Can't connect to the Amon AP
Dec 22 21:33:19 iZuf6hdwryap04ugtjbkokZ amonagent[17599]: time="2018-12-22T21:33:19+08:00" level=info msg="Metrics collected (Interval:1m0s)\n"
Dec 22 21:33:19 iZuf6hdwryap04ugtjbkokZ amonagent[17599]: time="2018-12-22T21:33:19+08:00" level=info msg="Sending data to http://172.19.13.11/api/system/v2/?api_key=693acf08cc5e
Dec 22 21:33:19 iZuf6hdwryap04ugtjbkokZ amonagent[17599]: time="2018-12-22T21:33:19+08:00" level=info msg="Can not collect and send metrics, exiting: Can't connect to the Amon AP
Dec 22 21:34:19 iZuf6hdwryap04ugtjbkokZ amonagent[17599]: time="2018-12-22T21:34:19+08:00" level=info msg="Metrics collected (Interval:1m0s)\n"
Dec 22 21:34:19 iZuf6hdwryap04ugtjbkokZ amonagent[17599]: time="2018-12-22T21:34:19+08:00" level=info msg="Sending data to http://172.19.13.11/api/system/v2/?api_key=693acf08cc5e
Dec 22 21:34:19 iZuf6hdwryap04ugtjbkokZ amonagent[17599]: time="2018-12-22T21:34:19+08:00" level=info msg="Can not collect and send metrics, exiting: Can't connect to the Amon AP
Dec 22 21:35:19 iZuf6hdwryap04ugtjbkokZ amonagent[17599]: time="2018-12-22T21:35:19+08:00" level=info msg="Metrics collected (Interval:1m0s)\n"
Dec 22 21:35:19 iZuf6hdwryap04ugtjbkokZ amonagent[17599]: time="2018-12-22T21:35:19+08:00" level=info msg="Sending data to http://172.19.13.11/api/system/v2/?api_key=693acf08cc5e
Dec 22 21:35:19 iZuf6hdwryap04ugtjbkokZ amonagent[17599]: time="2018-12-22T21:35:19+08:00" level=info msg="Can not collect and send metrics, exiting: Can't connect to the Amon AP
lines 1-18/18 (END)

any ideas ?

thanks,
Minas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant