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
Visitor

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 Champion
DynaMight Champion

Hi @ashiD 

 

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

 

Filesystem monitoring | Dynatrace Hub

 

Br, Mizső

 

Certified Dynatrace Associate at Telvice cPlc

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
Visitor

@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 Champion
DynaMight Champion

Hi @ashiD,

 

You can use this links from the documentation:

 

OneAgent extensions tutorial | Dynatrace Docs

ActiveGate extensions tutorial | Dynatrace Docs

 

 Br, Mizső

Certified Dynatrace Associate at Telvice cPlc

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