Im in the process of creating a few cuistom metrics with AppDynamices.
I have done the following
1. Created the a new directory under monitors
2. Created the monitor.xml with 775 permissions
3. Created shell script with 775 permissions and tested from command line.
4. Restarted Machine Agent.
The issue I'm finding, is that its not showing up any place within the control (maybe I not looking in correct place). I can see its running via the log file
[Agent-Monitor-Scheduler-3] 20 Jan 2017 15:08:14,568 INFO PeriodicTaskRunner - Returning time out value of [60000] ms for monitor task [Run]
[Agent-Monitor-Scheduler-3] 20 Jan 2017 15:08:14,568 INFO ExecTask - Running Executable Command [[/opt/appdynamics/machine-agent/monitors/slpUsage/userUsage.sh]]
[Agent-Monitor-Scheduler-3] 20 Jan 2017 15:08:14,569 INFO ExecTask - Started Executable Command [[/opt/appdynamics/machine-agent/monitors/slpUsage/userUsage.sh]]
[Agent-Monitor-Scheduler-3] 20 Jan 2017 15:08:15,612 INFO MonitorStreamConsumer - Stopping monitored process
Here is the monitor.xml
<monitor>
<name>UserUsage</name>
<type>managed</type>
<description>Monitor open file count </description>
<monitor-configuration></monitor-configuration>
<monitor-run-task>
<execution-style>periodic</execution-style>
<execution-frequency-in-seconds>60</execution-frequency-in-seconds>
<execution-timeout-in-secs>60</execution-timeout-in-secs>
<name>Run</name>
<type>executable</type>
<task-arguments></task-arguments>
<executable-task>
<type>file</type>
<file>userUsage.sh</file>
</executable-task>
</monitor-run-task>
</monitor>