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

Request number of errors per probe or device through HTTP

Votes:

0

I am looking for a way to read the number of errorsmessages there are for a single node or device. An option that comes close to what i'm looking for is the getstatus request. (http://{url}/api/getstatus.xml?username={user}&passhash={pass}), but this shows the number of messages of all the nodes this user has acces to.

Is there a way to get the number of errors (and warnings) for a single node or device?

http prtg xml

Created on Apr 21, 2010 12:46:58 PM



Best Answer

Accepted Answer

Votes:

1

Use the table.xml request

Using the table.xml request, you can include an ObjectID filter, to only count warnings and errors from that sensor down:

http://{url}/api/table.xml?content=probes&filter_objid={objectid}&columns=downsens,warnsens&username={user}&passhash={passhash}

The output will look something like this:

  <?xml version="1.0" encoding="UTF-8" ?> 
- <probes>
  <prtg-version>7.3.3.5634</prtg-version> 
- <item>
  <downsens_RAW>0000000000</downsens_RAW> 
  <warnsens_RAW>0000000000</warnsens_RAW> 
  </item>
  </probes>

Created on Apr 22, 2010 10:31:08 AM



5 Replies

Votes:

0

Dear Frans,

I'm very much afraid such an API-Call is not yet available for PRTG 7.x.

Best Regards.

Created on Apr 21, 2010 5:02:17 PM by  Torsten Lindner [Paessler Support]



Votes:

0

Thank you for your quick reply.

Are there any plans to make this available in a future update/release?

Created on Apr 22, 2010 7:16:51 AM



Votes:

0

Might be available in the future.

Created on Apr 22, 2010 7:20:56 AM by  Aurelio Lombardi [Paessler Support]



Accepted Answer

Votes:

1

Use the table.xml request

Using the table.xml request, you can include an ObjectID filter, to only count warnings and errors from that sensor down:

http://{url}/api/table.xml?content=probes&filter_objid={objectid}&columns=downsens,warnsens&username={user}&passhash={passhash}

The output will look something like this:

  <?xml version="1.0" encoding="UTF-8" ?> 
- <probes>
  <prtg-version>7.3.3.5634</prtg-version> 
- <item>
  <downsens_RAW>0000000000</downsens_RAW> 
  <warnsens_RAW>0000000000</warnsens_RAW> 
  </item>
  </probes>

Created on Apr 22, 2010 10:31:08 AM



Votes:

0

Thank you very much. This is precisely what i was looking for.

Created on Apr 22, 2010 11:22:55 AM




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.