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

HMC Import fails due to timeout #66

Open
gblansteen opened this issue Aug 28, 2018 · 9 comments
Open

HMC Import fails due to timeout #66

gblansteen opened this issue Aug 28, 2018 · 9 comments

Comments

@gblansteen
Copy link
Contributor

The "nmon2influxdb hmc import" operation is failing during execution due to timeout.

$ nmon2influxdb hmc import
2018/08/28 13:05:16 Using configuration file /home//.nmon2influxdb.cfg
2018/08/28 13:05:16 Creating InfluxDB database hmc_influxdb
2018/08/28 13:05:16 Updating retention policy to keep only the last 45d0h0m0s days. Timestamp based.
2018/08/28 13:05:17 Fetching latest 2 hours performance metrics. See hmc_samples parameter.
2018/08/28 13:05:17 Getting list of managed systems
2018/08/28 13:05:47 Get https://
***:12443/rest/api/uom/ManagedSystem: net/http: request canceled (Client.Timeout exceeded while awaiting headers)

I performed the same operation from Google Chrome with success. The amount of time it took to return was greater than 60s.

Perhaps a option in the configuration to set the timeout would be beneficial?

@gblansteen
Copy link
Contributor Author

I downloaded the source, located the hmc/hmc.go file and changed the "const timeout = 30" line to "const timeout = 120", compiled and executed the hmc import. There was no change in the timeout period. The amount of time for the failure to occur remained 30 seconds.

@adejoux
Copy link
Owner

adejoux commented Sep 6, 2018

Hello,

Sorry. I missed this issue. I think you changed exactly the good parameter for the timeout. Unfortunately I don't have HMC with this kind of response time. I will try to test it anyway.

Regards,

Alain

@kpaxindustries
Copy link

Hi, we were having the same issue, but I changed the timeout value, recompiled and it's working now. Strange.

@adejoux
Copy link
Owner

adejoux commented Oct 23, 2018

Thanks @kpaxindustries . I will add a new configuration parameter for this timeout value.

@julfur
Copy link

julfur commented Mar 25, 2019

Hi,

I've just had the same problem.
We have many HMCs, some of which can get really slow.

(edit : correcting myself since 2.1.5 release date was in 2017, I trust that I should modify and recompile :))

Thanks for your help

@adejoux
Copy link
Owner

adejoux commented Mar 26, 2019

Hello :)

Sorry I need to push some modifications and release a new version. Planning to do it in the following days.

Thanks

@cybrnook
Copy link

cybrnook commented Nov 5, 2019

Thanks for this! Would you still be pushing a new update?

@adejoux
Copy link
Owner

adejoux commented Mar 30, 2021

Hello @cybrnook,

Did you test the new version ? It should be ok no?

@pentiumoverdrive
Copy link

same problem, found out when checking the source code that the parameter is: hmc_timeout

hmc_timeout=120 would do it for me.
Noticed that v2.1.8 still says 2.1.7 :)

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

6 participants