In the current PRTG Version ( 17.1.28.1032 ), the following works:
/api/historicdata.xml?id=1001&avg=300&pctavg=120&pctshow=true&pct=95&pctmode=true&sdate=2017-01-10-00-00-00&edate=2017-01-10-01-00-00 |
And produces the following XML output:
<?xml version="1.0" encoding="UTF-8"?>
<histdata totalcount="12" listend="1">
<prtg-version>17.1.28.1032</prtg-version>
<item>
<datetime>10.01.2017 00:00:00 - 00:05:00</datetime>
<datetime_raw>42744.9618055556</datetime_raw>
<value channel="Health" channelid="0">100 %</value>
<value_raw channel="Health" channelid="0">100.0000</value_raw>
<value channel="System CPU Load" channelid="1">5 %</value>
<value_raw channel="System CPU Load" channelid="1">5.0000</value_raw>
<value channel="Available Memory Percent" channelid="2">51 %</value>
<value_raw channel="Available Memory Percent" channelid="2">50.6000</value_raw>
<value channel="Available Memory" channelid="3">1.034 MByte</value>
<value_raw channel="Available Memory" channelid="3">1084643737.6000</value_raw>
<value channel="Downtime" channelid="-4">0 %</value>
<value_raw channel="Downtime" channelid="-4">0.0000</value_raw>
<percentile>100 %</percentile>
<percentile_raw>0000000000001000.0000</percentile_raw>
<coverage>100 %</coverage>
<coverage_raw>0000010000</coverage_raw>
</item>
<item>
<datetime>10.01.2017 00:05:00 - 00:10:00</datetime>
<datetime_raw>42744.9652777778</datetime_raw>
<value channel="Health" channelid="0">100 %</value>
<value_raw channel="Health" channelid="0">100.0000</value_raw>
<value channel="System CPU Load" channelid="1">5 %</value>
<value_raw channel="System CPU Load" channelid="1">4.8000</value_raw>
<value channel="Available Memory Percent" channelid="2">48 %</value>
<value_raw channel="Available Memory Percent" channelid="2">47.8000</value_raw>
<value channel="Available Memory" channelid="3">982 MByte</value>
<value_raw channel="Available Memory" channelid="3">1029293670.4000</value_raw>
<value channel="Downtime" channelid="-4">0 %</value>
<value_raw channel="Downtime" channelid="-4">0.0000</value_raw>
<percentile>100 %</percentile>
<percentile_raw>0000000000001000.0000</percentile_raw>
<coverage>100 %</coverage>
<coverage_raw>0000010000</coverage_raw>
</item>
Note: Please beware that in the current release (and probably on older versions as well), the readings of the percentile_raw are off by a factor of 10x. This is being looked into.
Best Regards,
Luciano Lingnau [Paessler Support]
Add comment