# Monitoring availability of sensors inside a WEB app ( STIBO)

**URL:** <https://community.dynatrace.com/t/monitoring-availability-of-sensors-inside-a-web-app-stibo/20834>\
**Category:** Open Q&A\
**Tags:** technologies\
**Created:** [May 29, 2019, 1:16pm UTC](https://community.dynatrace.com/t/monitoring-availability-of-sensors-inside-a-web-app-stibo/20834 "2019-05-29T13:16:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonio\_elfarkh](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonio_elfarkh/32/30081_2.png) [@antonio\_elfarkh](https://community.dynatrace.com/u/antonio_elfarkh)\
**Post date:** [May 29, 2019, 1:16pm UTC](https://community.dynatrace.com/t/monitoring-availability-of-sensors-inside-a-web-app-stibo/20834/1 "2019-05-29T13:16:16Z")

</div>

We have Dynatrace one agent installed on the apache server to monitor our WEB application ( STIBO). I need to monitor some sensors inside the app that delivers data of availability via API to other Monitoring tools ( PRTG) ? What should be my next step on the monitoring implemenation ?

---

<div class="post-metadata">

**Author:** ![antonio\_elfarkh](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonio_elfarkh/32/30081_2.png) [@antonio\_elfarkh](https://community.dynatrace.com/u/antonio_elfarkh)\
**Post date:** [May 29, 2019, 1:17pm UTC](https://community.dynatrace.com/t/monitoring-availability-of-sensors-inside-a-web-app-stibo/20834/2 "2019-05-29T13:17:13Z")

</div>

Forgot to mention that my idea is to have one single tool

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [May 29, 2019, 2:38pm UTC](https://community.dynatrace.com/t/monitoring-availability-of-sensors-inside-a-web-app-stibo/20834/3 "2019-05-29T14:38:36Z")

</div>

If I got your question right - you need to collect some metrics or status data that are exposed by the application? In this case building a oneagent plugin is probably way to achieve that. However depending on the exposed data it might be possible to collect it also by other methods or maybe dynatrace already collects the data.

Can you please elaborate more about what type of data you need to collect?

---

<div class="post-metadata">

**Author:** ![antonio\_elfarkh](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonio_elfarkh/32/30081_2.png) [@antonio\_elfarkh](https://community.dynatrace.com/u/antonio_elfarkh)\
**Post date:** [May 30, 2019, 12:34pm UTC](https://community.dynatrace.com/t/monitoring-availability-of-sensors-inside-a-web-app-stibo/20834/4 "2019-05-30T12:34:04Z")

</div>

Hello Julius, thanks for your prompt reply. Yes you understood perfectly my request. The app ( linux ) exposed data in different formats, these are the formats: XML format and also there is a plugin for Naggios to facilitate the integration for with this vendor. So far i do not know if it is possible the integration with Dyna. Do you ? Thanks

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [May 30, 2019, 6:10pm UTC](https://community.dynatrace.com/t/monitoring-availability-of-sensors-inside-a-web-app-stibo/20834/5 "2019-05-30T18:10:57Z")

</div>

I don’t know anything about your application, but I can imagine at least some of the information can probably be collected by using request attributes or is already available in Dynatrace.

If this is not the case, then you have basically two options:

- Collect the data by yourself in a script and push the data to Dynatrace using API (Custom device)  
- Write a oneagent plugin and collect the data in the plugin code. With Oneagent plugin you can push the data to the process as new metrics or events.

What kind of data is exposed?

---

<div class="post-metadata">

**Author:** ![antonio\_elfarkh](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonio_elfarkh/32/30081_2.png) [@antonio\_elfarkh](https://community.dynatrace.com/u/antonio_elfarkh)\
**Post date:** [May 31, 2019, 9:34am UTC](https://community.dynatrace.com/t/monitoring-availability-of-sensors-inside-a-web-app-stibo/20834/6 "2019-05-31T09:34:16Z")

</div>

Hi Julius. The type of data available in the system via API could be in these 3 formats :

1.- Simple strings values

2.- Full XML.

3.- Nagios plugin output

The data i am interested to fetch is the status of the OIEP´s ( Outbound Integration End Points ) , the four possible status are:

Warning,

Critical

OK and

Unknown.

At the end, this data is being read by a different monitoring tool ( PRTG) and i want just to display the information on Dynatrace and create alerts only when the status is Critical.

---

<div class="post-metadata">

**Author:** ![antonio\_elfarkh](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonio_elfarkh/32/30081_2.png) [@antonio\_elfarkh](https://community.dynatrace.com/u/antonio_elfarkh)\
**Post date:** [May 31, 2019, 9:58am UTC](https://community.dynatrace.com/t/monitoring-availability-of-sensors-inside-a-web-app-stibo/20834/7 "2019-05-31T09:58:19Z")

</div>

Hi Again, after investigating a bit, i think i found the answer in Dynatrace´s support page.

> **[Timeseries API v1](https://docs.dynatrace.com/docs/dynatrace-api/environment-api/metric-v1)**
>
> Retrieve metric information via Timeseries v1 API.

See the answer below and sharing this with the community.

To get a definition of the metric but not its data points, set the **includeData** parameter to `false`.

| Parameter | Type | Description | In | Required |
| --- | --- | --- | --- | --- |
| timeseriesId | string | Case-sensitive ID of the metric from which you want to read parameters.  
  
You can execute a [GET metric definitions](https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/timeseries/#anchor_list-metrics) request to obtain the list of available metrics. | path | required |
| includeData | boolean | Flag to include data points to the response. Set to `false` to obtain just the definition of the metric. | query | optional |

Julius,

Thanks for the discussion, this type of interactions have driven me to find the right answer to the question i made and of course your questions and inputs as well.
