cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible to monitor a keyword in a certain file located on the server via OneAgent?

ashiD
Frequent Guest

Is it possible to monitor a keyword in a certain file located on the server via OneAgent? 

 

For Example

monitor specific file location like this "/xyz /application/jrtemp", and any anomaly ("jretemp" has the word offline) happens it will be generate a alert.

5 REPLIES 5

Mizső
DynaMight Leader
DynaMight Leader

Hi @ashiD 

 

Could you please check this? Maybe you can use it for the above mentioned purposes.

 

Filesystem monitoring | Dynatrace Hub

 

Br, Mizső

 

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

pahofmann
DynaMight Guru
DynaMight Guru

The Plugin @Mizső mentioned is good, but doesn't work for your exact use case as it can't look into the files.

 

But you can adapt it or write a custom plugin that scans a file and looks for your key word.

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net

ashiD
Frequent Guest

@pahofmann  I am very new to dynatrace, are there guidelines on how to write a custom plugin that scans a file and looks for your key word and then deploy it ? 

Mizső
DynaMight Leader
DynaMight Leader

Hi @ashiD,

 

You can use this links from the documentation:

 

OneAgent extensions tutorial | Dynatrace Docs

ActiveGate extensions tutorial | Dynatrace Docs

 

 Br, Mizső

Dynatrace Community RockStar 2024, Certified Dynatrace Professional

pahofmann
DynaMight Guru
DynaMight Guru

There is a general tutorial for OneAgent extensions. As they are written in python, you can use any python tutorial for the file handling and scanning parts. 

 

The dynatrace parts should be straight forward and can be taken from the tutorial or any other plugin. You can just unzip them and have a look if you want to see how they work. 

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net

Featured Posts