Is there any official documentation on interacting with the "Data file" in the probe definition?
search cancel

Is there any official documentation on interacting with the "Data file" in the probe definition?

book

Article ID: 271578

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

I am writing a simple probe and it needs to store some persistent data. The probe definition has a "Data file" field that, if logmon is a good example, exists for that purpose:

 

It would appear that this is expected to be in the same format as the traditional .cfg file, again based on what logmon does.

Is there any way that I can interact with this type of file in my own probe?

 

Environment

Release : Any

Resolution

In the context of writing your own probe -the ultimate answer is "put whatever you want in whatever file you want, stored in whatever format you want, as long as your probe knows how to read and write to it" .

You do not need to specify the data file here for your own custom probes.

When you put the data file in the Probe Properties (as in the example for logmon), it will update the controller.cfg with a reference to it, but the only thing that uses this is Infrastructure Manager itself to allow you to see the data file in Raw Configure. 

So in order for that to work, your data file needs to be saved in a similar format as the .cfg files:

<section>
 key = value
 key2 = value2
</section>

and so on.

If you don't care about viewing your data files in Infrastructure Manager then your probe may store and access local data however you see fit with no need to conform to this format.