Closed robm82 closed 4 years ago
Hi @robm82,
Can I get you to please run Set-PrtgClient -LogLevel Response
, run this again and provide the XML of the records that had a decimal value? (the December 12th and 17th) and then for comparison also provide the XML for the 16th
Hi @lordmilko,
I have run that, but for some reason, it isn't outputting any data for the 17th. Below is what I managed to get:
VERBOSE: Get-SensorHistory: <?xml version="1.0" encoding="UTF-8"?> <histdata totalcount="30" listend="0"> <prtg-version>19.4.54.1506</prtg-version> </histdata> VERBOSE: Get-SensorHistory: <?xml version="1.0" encoding="UTF-8"?>
<histdata totalcount="30" listend="1">
<prtg-version>19.4.54.1506</prtg-version>
<item>
<datetime>16/12/2019</datetime>
<datetime_raw>43816.0000000000</datetime_raw>
<value channel="Free Space" channelid="0">70 %</value>
<value_raw channel="Free Space" channelid="0">70.2311</value_raw>
<value channel="Free Bytes" channelid="1">42,778 MByte</value>
<value_raw channel="Free Bytes" channelid="1">44856456689.7778</value_raw>
<value channel="Total" channelid="2">60,911 MByte</value>
<value_raw channel="Total" channelid="2">63869808640.0000</value_raw>
<value channel="Downtime" channelid="-4">0 %</value>
<value_raw channel="Downtime" channelid="-4">0.0000</value_raw>
<coverage>100 %</coverage>
<coverage_raw>0000010000</coverage_raw>
</item>
<item>
<datetime>15/12/2019</datetime>
<datetime_raw>43815.0000000000</datetime_raw>
<value channel="Free Space" channelid="0">70 %</value>
<value_raw channel="Free Space" channelid="0">70.2453</value_raw>
<value channel="Free Bytes" channelid="1">42,787 MByte</value>
<value_raw channel="Free Bytes" channelid="1">44865509504.0000</value_raw>
<value channel="Total" channelid="2">60,911 MByte</value>
<value_raw channel="Total" channelid="2">63869808640.0000</value_raw>
<value channel="Downtime" channelid="-4">0 %</value>
<value_raw channel="Downtime" channelid="-4">0.0000</value_raw>
<coverage>100 %</coverage>
<coverage_raw>0000010000</coverage_raw>
</item>
<item>
<datetime>14/12/2019</datetime>
<datetime_raw>43814.0000000000</datetime_raw>
<value channel="Free Space" channelid="0">70 %</value>
<value_raw channel="Free Space" channelid="0">70.3579</value_raw>
<value channel="Free Bytes" channelid="1">42,856 MByte</value>
<value_raw channel="Free Bytes" channelid="1">44937460424.0287</value_raw>
<value channel="Total" channelid="2">60,911 MByte</value>
<value_raw channel="Total" channelid="2">63869808640.0000</value_raw>
<value channel="Downtime" channelid="-4">0 %</value>
<value_raw channel="Downtime" channelid="-4">0.0000</value_raw>
<coverage>100 %</coverage>
<coverage_raw>0000010000</coverage_raw>
</item>
<item>
<datetime>13/12/2019</datetime>
<datetime_raw>43813.0000000000</datetime_raw>
<value channel="Free Space" channelid="0">70 %</value>
<value_raw channel="Free Space" channelid="0">70.4000</value_raw>
<value channel="Free Bytes" channelid="1">42,881 MByte</value>
<value_raw channel="Free Bytes" channelid="1">44964333795.5556</value_raw>
<value channel="Total" channelid="2">60,911 MByte</value>
<value_raw channel="Total" channelid="2">63869808640.0000</value_raw>
<value channel="Downtime" channelid="-4">0 %</value>
<value_raw channel="Downtime" channelid="-4">0.0000</value_raw>
<coverage>100 %</coverage>
<coverage_raw>0000010000</coverage_raw>
</item>
<item>
<datetime>12/12/2019</datetime>
<datetime_raw>43812.0000000000</datetime_raw>
<value channel="Free Space" channelid="0">70 %</value>
<value_raw channel="Free Space" channelid="0">70.4094</value_raw>
<value channel="Free Bytes" channelid="1">42,887 MByte</value>
<value_raw channel="Free Bytes" channelid="1">44970348188.4444</value_raw>
<value channel="Total" channelid="2">60,911 MByte</value>
<value_raw channel="Total" channelid="2">63869808640.0000</value_raw>
<value channel="Downtime" channelid="-4">0 %</value>
<value_raw channel="Downtime" channelid="-4">0.0000</value_raw>
<coverage>100 %</coverage>
<coverage_raw>0000010000</coverage_raw>
</item>
Did that result in the value 42.887 for 12/12/19 when you ran that?
I think the datetime
and datetime_raw
are slightly different values; can you also provide the data for 11/12/19, and also provide the regular output from Get-SensorHistory
?
Nevermind, I've managed to reproduce the issue, I know what's wrong here.
Hi @robm82,
I have published a new release candidate that should have resolved this issue. Can you please give it a try and let me know how you go
Thanks for raising this issue
Regards, lordmilko
Hi @lordmilko,
I have just manually downloaded the latest version, and that looks to have resolved the issue. Many thanks again for resolving this so quickly.
Regards, robm82
Hi @robm82,
Please be advised PrtgAPI 0.9.12 has now been released, which includes the fix for this issue as well as other enhancements
If you wish to update your system PrtgAPI installation, simply run
Update-Module PrtgAPI
and reopen PowerShell
Regards, lordmilko
Describe the bug When attempting to run the below command:
The free bytes return value can sometimes produce a decimal value, which can be seen on the data return for the 17/12 and 12/12:
Steps to reproduce Steps to reproduce are above. I have checked the PRTG Server using the web client, and the history data appears to be there in full so I cannot see any reason why it is showing some of the values as a decimal.
What is the output of
Get-PrtgClient -Diagnostic
?Additional context This may be a result of attempting to fix the other issues in the new 0.9.12 release