Comments (11)
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.
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.
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.
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.
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.
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.
Great ☺. I will check this evening what is the minimum role needed.
from nmon2influxdb.
Ok, my fault. A HMC User with the 'hmcviewer' Role is working.
from nmon2influxdb.
Great news ☺. Everything is working for you now ?
from nmon2influxdb.
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.
Hello,
Good news. Your point is right. I opened issue #31 to manage it.
Closing this one.
Thank you.
from nmon2influxdb.
Related Issues (20)
- Demo shows "502 Bad Gateway" HOT 1
- metastore database error for hmc import HOT 3
- where can find the nmon2influxdblib.Config? HOT 2
- HMC Import fails due to timeout HOT 9
- Grafana dashboard plot overlapped HOT 5
- HMC import HOT 2
- Compile nmon2influxdb on AIX 7.1 and 7.2 HOT 7
- HMC import only last 2 hours HOT 3
- Timezone never changes during import HOT 1
- nmon2influxdb from several HMC HOT 7
- nmon2influxdb hmc import doesn't logoff ? HOT 1
- Nmon2influxdb on RedHat8 on IBM Power HOT 2
- too many series for TOP HOT 3
- Build with GO HOT 2
- Compatibility with InfluxDB v.2 HOT 3
- Usage question HOT 1
- No help topic for 'xxxx.nmon' HOT 2
- data not import to influxdb HOT 1
- Tryimg to import nmon file in influxdb not working for me HOT 2
- [Windows 10] Trying to import the dashboard t influxDB but it is failing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nmon2influxdb.