Code Monkey home page Code Monkey logo

Comments (11)

adejoux avatar adejoux commented on June 3, 2024

Hello,

Thanks for your feedback.
Can you give me your influxdb version ? Code 401 is mostly related to authentication problem but like you said the database was created. I will download the same version and test it.

Thanks

from nmon2influxdb.

adejoux avatar adejoux commented on June 3, 2024

Hello,

I forgot to say it but remove hmc_data_retention in ~/.nmon2influxdb.cfg for a quick fix. It will allows you to go further.

I am also surprised to not see the database in your debug output. It was the first run?

A standard output should be:

/Users/adejoux/go/bin/nmon2influxdb --debug hmc import            

[{[{databases map[] [name] [[_internal] [nmon_reports] [nmon2influxdb_log] [nmon2influxdbHMC]] <nil>}] }]
ALTER RETENTION POLICY "autogen" ON "nmon2influxdbHMC" DURATION 60d REPLICATION 1 DEFAULT
Getting list of managed systems
...

from nmon2influxdb.

sbrech avatar sbrech commented on June 3, 2024

Hi,

I removed the 'hmc_data_retention' line but no success.

# /opt/nmon2influxdb/nmon2influxdb-linux-amd64 --debug hmc import                                                │Nov 23 11:00:56 epinflux01-bs influxd: [query] 2016/11/23 11:00:56 CREATE DATABASE nmon2influxdbHMC
[{[{databases map[] [name] [[_internal] [server_power] [nmon2influxdbHMC]] <nil>}] }]                                                │Nov 23 11:00:56 epinflux01-bs influxd: [httpd] 172.19.161.174 - hmc [23/Nov/2016:11:00:56 +0100] "GET /query?db=nmon2influxdbHMC&q=create
2016/11/23 12:04:47 Error status code: 401

I use influxdb-1.0.2-1.x86_64 directly from InfluxDB and yes it was the first run.

regards,
Sascha

from nmon2influxdb.

adejoux avatar adejoux commented on June 3, 2024

Hello,

I finally found it. It's not related to influxDB at all. It's your credentials for your hmc.

I installed the same version of InfluxDB. If you enable authentication and set the wrong password you have:

2016/11/23 13:54:31 authorization failed

But if I change my hmc_password line in the configuration file to a wrong password:

[{[{databases map[] [name] [[_internal] [nmon_reports] [nmon2influxdb_log] [nmon2influxdbHMC]] <nil>}] }]
2016/11/23 13:53:55 Error status code: 401

You need to update hmc_user and hmc_password in your configuration file.

Sorry for that, it's really a poor error message here. I will fix it.

Thanks,

Alain

from nmon2influxdb.

adejoux avatar adejoux commented on June 3, 2024

With fix #30, new error message will be:

nmon2influxdb hmc import  
2016/11/23 14:14:23 HMC authentication error: 401 Unauthorized

If hmc server name is wrong, it will be:

 nmon2influxdb hmc import --hmc foobar
2016/11/23 14:14:41 HMC error sending auth request Put https://foobar:12443/rest/api/web/Logon: dial tcp: lookup foobar: no such host

from nmon2influxdb.

sbrech avatar sbrech commented on June 3, 2024

should work now, code is currently running and pushing data to the influx.
Is hscroot recommended? Before, I used a extra User with 'hmcviewer' role.

thx for your support.

from nmon2influxdb.

adejoux avatar adejoux commented on June 3, 2024

Great ☺. I will check this evening what is the minimum role needed.

from nmon2influxdb.

sbrech avatar sbrech commented on June 3, 2024

Ok, my fault. A HMC User with the 'hmcviewer' Role is working.

from nmon2influxdb.

adejoux avatar adejoux commented on June 3, 2024

Great news ☺. Everything is working for you now ?

from nmon2influxdb.

sbrech avatar sbrech commented on June 3, 2024

Everything fine know, thank you.

Would it be possible to code a switch for managed system info only? A complete hmc import (manged systems and LPARs) took 20 in our environment minutes, which is ok for the LPARS but it would be nice to get the data from the Hardware faster.

regards,
Sascha

from nmon2influxdb.

adejoux avatar adejoux commented on June 3, 2024

Hello,

Good news. Your point is right. I opened issue #31 to manage it.

Closing this one.
Thank you.

from nmon2influxdb.

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.