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
Get-SensorHistory : Don't know how to convert double value '365,006' Error #124
Comments
Thanks @robm82, I didn't consider that specifying a custom As alluded to before, the issue here is that we want to display the "display value" of a channel (300GB instead of 3 billion bytes) however we don't know whether the PRTG Server's language specifies that thousands should be separated by commas and decimals with periods, or the other way around. In PrtgAPI 0.9.10 the solution I implemented to this was erroneous, and the solution I implemented in PrtgAPI 0.9.11 was close, but still not as exhaustive as it could be. I am working on implementing a workaround to the specific case that failed here (raw value in bytes but display value in MB, GB, etc) and will also hard code some rules for the PRTG languages that are currently present in PRTG, so at the very least we can cover all numeric scenarios in the present, as well as potentially new ones in the future |
-Added additional display value conversion scenario for parsing values whose raw value >= 1000
Hi @robm82, I have published a release candidate for PrtgAPI 0.9.12 which contains a fix for this issue Are you able to potentially download the latest build and follow the manual installation steps to confirm whether the command I will hold off on releasing PrtgAPI 0.9.12 for perhaps several days to be sure there are no more issues that need to be resolved. In the meantime you can utilize this version in your scripts via the Regards, |
Hi @lordmilko, I have just downloaded and tested version 0.9.12 and I can confirm that the command Many thanks, |
Hi @lordmilko, I think I have discovered another bug - I will raise a new issue for this and see what you think. Many thanks, |
Describe the bug
I am trying to run the following command to get the sensor history for the last 30 days, but only getting an average of one sensor history per day (just so that I can down on the number of returned results):
This unfortunately results in the following error:
What is the output of
Get-PrtgClient -Diagnostic
?Additional context
This was working in the previous release of PrtgApi (0.9.10) - since fixing the last issue (a big thank you by the way), it seems to have broken this.
The text was updated successfully, but these errors were encountered: