-
Notifications
You must be signed in to change notification settings - Fork 107
Description
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