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

API Paused Sensors with Time Paused

Votes:

0

Good morning paessler and PRTGers

I am exporting lists of our paused sensors using

api/table.json?content=sensors&output=json&columns=objid,device,sensor&filter_status=7

And would very much like a column where it shows how long this has been paused, im hoping this is possible?

Thanks Samuel

api json paused

Created on Nov 30, 2017 10:18:06 AM



4 Replies

Votes:

0

Dear samuelma,

this property cannot be read via a table query.

Created on Nov 30, 2017 12:44:08 PM by  Arne Seifert [Paessler Support]



Votes:

0

Hi Arne,

Could this be achieved via a similar api query? Further to this how can i get the data from the log tab of devices and sensors? I am required to produce a report of who paused what and when across every device and am a bit out of my depth working it out.

Created on Dec 1, 2017 2:40:49 PM



Votes:

0

Dear samuelma,

please understand that our technical support for API usage is limited. You can generate a list of paused sensors if you filter by status like status=7, while there are additional pause statuses available:

 7 = PausedUser
 8 = PausedDependency
 9 = PausedSchedule
11 = PausedLicense
12 = PausedUntil

When the sensor was paused is only available either it the sensor message, or the sensor log, which would have to be parsed, meaning this can't be done with a similar API query, or an API query at all.

As a kind of work around you can try to use the column lastcheck, but there can be other reasons than pausing for a scan interruption.

Created on Dec 1, 2017 3:12:46 PM by  Arne Seifert [Paessler Support]

Last change on Dec 1, 2017 3:15:17 PM by  Arne Seifert [Paessler Support]



Votes:

0

Hi samuelma,

Using:

/api/table.xml?content=sensors&columns=objid,device,sensor,status,message&filter_status=7

Can give you the info as to when the object was paused:

<item>
  <objid>2004</objid>
  <device>FritzBox</device>
  <sensor>Traffic</sensor>
  <status>Paused (paused)</status>
  <status_raw>7</status_raw>
  <message><div class="status">[[ Paused at 26-11-2017 10:05:24 by PRTG System Administrator ]]: Paused by user<div class="moreicon"></div></div></message>
  <message_raw>[[ Paused at 26-11-2017 10:05:24 by PRTG System Administrator ]]: Paused by user</message_raw>
</item>
<item>
  <objid>2006</objid>
  <device>FritzBox</device>
  <sensor>Fritz!Energy</sensor>
  <status>Paused (paused)</status>
  <status_raw>7</status_raw>
  <message><div class="status">[[ Paused at 26-11-2017 10:05:30 by PRTG System Administrator ]]: Paused by user<div class="moreicon"></div></div></message>
  <message_raw>[[ Paused at 26-11-2017 10:05:30 by PRTG System Administrator ]]: Paused by user</message_raw>
</item>

Created on Dec 1, 2017 3:25:04 PM




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.