# Dynatrace invoke shell script from Linux sever

**URL:** <https://community.dynatrace.com/t/dynatrace-invoke-shell-script-from-linux-sever/36402>\
**Category:** Open Q&A\
**Tags:** linux\
**Created:** [September 1, 2022, 8:39am UTC](https://community.dynatrace.com/t/dynatrace-invoke-shell-script-from-linux-sever/36402 "2022-09-01T08:39:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rwanninayake](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@rwanninayake](https://community.dynatrace.com/u/rwanninayake)\
**Post date:** [September 1, 2022, 8:39am UTC](https://community.dynatrace.com/t/dynatrace-invoke-shell-script-from-linux-sever/36402/1 "2022-09-01T08:39:48Z")

</div>

Is there a way to create a problem metric in Dynatrace using the shell script that can be executed from the Linux server (Monitoring Server)?

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [September 4, 2022, 1:26pm UTC](https://community.dynatrace.com/t/dynatrace-invoke-shell-script-from-linux-sever/36402/2 "2022-09-04T13:26:09Z")

</div>

[@rwanninayake](https://community.dynatrace.com/user/54590),

Probably fastest & oldest way is to get the data in via the Dynatrace API.

But you can also feed it into OneAgent, with scripting integration. Haven’t tried it myself, but seems pretty easy:

> **[Metric scripting integration](https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-metrics/ingestion-methods/oneagent-pipe)**
>
> Learn how to ingest metrics using local scripting integration.
