9.10.2. Step 2: Create the monitoring application script

The script that the Universal Agent uses is called the metafile (*.MDL). Create the following metafile in a flat text editor and save it as script.mdl in the metafiles directory on your computer.

For Windows(R), create the following file:

//APPL Sample

//Name NumericScript K 1200 AddTimeStamp SkipNonNumericData=Y

//Source script c:\temp\test.bat Interval=60

//Attributes

HostName        (GetEnvValue = HOSTNAME)

Script          (GetEnvValue = PROBE)

PreviousValue   (GetEnvValue = PREV_VALUE)

Stdout  C  999999999999

This metafile identifies the data source (the script file), as well as the attribute group for which to gather data.