Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.
AppDynamics customers and established members should click the sign in button to authenticate.
Looking to use a script file to retrieve file size, and creation date (or Last modified)
Client has a requirement whereby a batch file is received that is sometimes empty, we need to check when file was received and baseline the file sizes.
Batch file I've got so long:
FOR %%? IN (speed.txt) DO (
ECHO File Name Only : %%~n?
ECHO File Size : %%~z?
ECHO Last-Modified Date : %%~t?
How would I add this to monitor.xml and ensure the metrics pull through?
The link below is your friend.
First, you need to update the script to echo/output the values in the metric format.
Like include the details of the tree where you would like the metric to be reported.
Hardware Resources| Instrument Name=Instrument Value
Fully Qualified Form
Hardware Resources| <metric name>,value=<long value>
Once that is done, you can the include the script details in monitor.xml as per the instructions on this page.
Please post here if you have any further questions.