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

Get XML Sensor via HTTP

Votes:

0

Hello, it's possible to get data via http ? not ssh as i use it now

I have php script that generate xml like this one.

<?xml version="1.0" encoding="utf-8"?>
<prtg>
  <result>
    <channel>SHI-F2-b0fa.eb56.5ec4</channel>
    <value>17</value>
  </result>
  <result>
    <channel>SHI-F1-0006.f6ec.d7fd</channel>
    <value>7</value>
  </result>
  <result>
    <channel>SHI-7c69.f6e1.dc05</channel>
    <value>5</value>
  </result>
  <result>
    <channel>SHI-c08c.601f.24b7</channel>
    <value>1</value>
  </result>
  <result>
    <channel>SHI-7c69.f6e1.e0f7</channel>
    <value>2</value>
  </result>
  <result>
    <channel>SHI-c08c.601f.25a1</channel>
    <value>1</value>
  </result>
  <result>
    <channel>Всего пользователей</channel>
    <value>33</value>
    <mode>Absolute</mode>
  </result>
</prtg>

http php xml

Created on Apr 17, 2014 8:57:28 AM

Last change on Apr 18, 2014 1:25:58 PM by  Konstantin Wolff [Paessler Support]



3 Replies

Votes:

0

Hello,

thank you very much for your KB-Post. You could try using the HTTP XML/REST Sensor to gather such values with HTTP. However, this sensor is currently limited to only get one value per sensor. So you would need several sensors, one for each value.

best regards.

Created on Apr 21, 2014 9:21:29 AM by  Torsten Lindner [Paessler Support]



Votes:

0

it's not so usefull...

There only one way to make custom sensor with multiple channels? runtime file on probe or scripts on remote linux machine ?

Created on Apr 21, 2014 9:29:21 AM



Votes:

0

If you write your own executable (as a custom exe/script sensor in PRTG then), you can choose which ever protocol you want, with which the executable then connects to the Linux target. The connection then is part of your executable, as well as the result gathering and parsing.

Created on Apr 21, 2014 9:33: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.