Giter VIP home page Giter VIP logo

Comments (5)

kevinquinnyo avatar kevinquinnyo commented on July 4, 2024

I notice for the ones I installed manually, there is "No data for the selected period" under System for those servers.

Where are the docs for this?

from amonagent.

martinrusev avatar martinrusev commented on July 4, 2024

@kevinquinnyo Can you please check if these manually installed agents are running:

systemctl amonagent status
(or)
service amonagent status

After running the -test option though, it runs though the checks, succeeds, and the servers immediately show up in the amon server UI.

This is a bug, I will look into it

from amonagent.

kevinquinnyo avatar kevinquinnyo commented on July 4, 2024
root@cache1:~# service amonagent status
amonagent Process is running [ OK ]

It looks like it's still producing the error about the scheme which I thought was od since the amonagent.conf file has http:// in the amon_instance key:

root@cache1:~# tail -n5 /var/log/amonagent/amonagent.log 

2016/02/20 07:40:38 INFO amonagent.log Metrics collected (Interval:1m0s)
2016/02/20 07:40:38 INFO amonagent.log Flusher routine failed, exiting: Can't connect to the Amon API on Can't connect to the Amon API on Post /api/system/v2/?api_key=: unsupported protocol scheme ""


root@cache1:~# date
Sat Feb 20 07:41:25 VET 2016

from amonagent.

kevinquinnyo avatar kevinquinnyo commented on July 4, 2024
root@cache1:~# cat /etc/opt/amonagent/amonagent.conf 
{"api_key": "my_key_here", "amon_instance": "http://my.ip.add.ress"}
root@cache1:~# curl -X POST http://my.ip.add.ress/api/system/v2/ --data "api_key=my_key_here"
{"detail":"Authentication credentials were not provided."}

Obviously I'm not testing the connection correctly. What data do I need to post to the server to test the connection manually? Or would that even help in troubleshooting the issue?

from amonagent.

martinrusev avatar martinrusev commented on July 4, 2024

That is a strange error. The testing URL is: http://my.ip.add.ress/api/system/v2/?api_key=api_key_here.

Can you please run /opt/amonagent/amonagent -test once again and take a look at the test URL at the end

from amonagent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.