What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

datetime_raw value is not correct in channel data.

Votes:

0

Hi,

We use PRTG http api to get channel data, but datetime_raw is the time of app run not PRTG sampling time (interval is 60s). It is bug of PRTG HTTP API? Here is the uri : https://prtg.myorg.tw/api/table.xml?content=channels&output=xml&columns=objid,name,datetime,lastvalue&id=8325

Xml result :

<?xml version="1.0" encoding="UTF-8"?>
<channels totalcount="0" listend="1">
  <prtg-version>17.3.33.2830</prtg-version>
  <item>
    <objid>-4</objid>
    <objid_raw>*000000004</objid_raw>
    <name>Downtime</name>
    <datetime>12/13/2017 6:30:11 AM</datetime>
    <datetime_raw>43081.9376284143</datetime_raw>
  </item>
  <item>
    <objid>0</objid>
    <objid_raw>0000000000</objid_raw>
    <name>Value</name>
    <datetime>12/13/2017 6:30:11 AM</datetime>
    <datetime_raw>43081.9376284143</datetime_raw>
    <lastvalue>337 #</lastvalue>
    <lastvalue_raw>337.0000</lastvalue_raw>
  </item>
</channels>

api datetime-raw script

Created on Dec 13, 2017 12:24:13 AM

Last change on Dec 13, 2017 5:38:49 AM by  Sven Roggenhofer [Paessler Technical Support]



6 Replies

Votes:

0

Hello,

Thank you for the KB-Post. The datetime_raw is an internal formation. It is a decimal date that you should be able to convert similar to the date in an excel spreadsheet. It's definitely not the interval. And really only meant for internal use actually.

best regards.

Created on Dec 13, 2017 1:41:28 PM by  Torsten Lindner [Paessler Support]



Votes:

0

How to get Timestamp of the last channel result actually? We have convert datetime_raw to .net datetime, and konwn datetime_raw is not interval.

Created on Dec 13, 2017 10:15:43 PM



Votes:

0

How to get Timestamp of the last channel result (like lasttime_raw_utc)? We have convert datetime_raw to .net datetime.

Created on Dec 13, 2017 10:30:27 PM



Votes:

0

How to get Timestamp of the last channel result (like lasttime_raw_utc)?

Created on Dec 13, 2017 10:34:55 PM



Votes:

0

Can PRTG HTTP-API add the [lastcheck] or [lasttime_raw_utc] property when get channel data, or add all channel data to sensortree?

Created on Dec 14, 2017 2:38:43 AM



Votes:

0

Just use the normal <datetime>12/13/2017 6:30:11 AM</datetime>. This is the time of the very scan.

Created on Dec 14, 2017 8:56:39 AM by  Torsten Lindner [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.