So, blazing a trail here...construction ahead...
In prep for a 10.0 to 10.5 upgrade started to look at the pain points at trying to keep the changed, custom, one off files in view. At one point we had nine different epagents which was driving our system admins a bit batty. So, I devised a way to combine all of the agents and have a more configuration driven epagent, so that we have a single epagent.
IntroscopeEPA.properties use of Environment Variables
This does help start to frame the source control a bit better, just starting the fire with the epagent.
epagent
<environment performance agent> This would be a full directory structure agent with all the required files.
lib/agent.jar
bin/EPACtrl.sh
logs
plugin_one.pl
plugin_two.sh
plugin_three.java
IntroscopeEPAgent.properties.aix
IntroscopeEPAgent.properties.sles
IntroscopeEPAgent.properties.rhel
<Host>
syshome/wilyapm/config/IntroscopeEPAgent.properties
syshome/wily.apm/config/caapm.conf
syshome/wily.apm/config/plugin_one.properties
With a single epagent directory and all the environment or custom configuration being located within the /syshome/wilyapm/config directory, we can mass deploy the single epagent to all servers and all environments.
We would tag the tree when there was a change and then when we winscp the contents (being aware of binary for jar/so and text for basically everything else) we create a zip/tar/gzip with the APM release and tag value
epagent_10.0.0.12_20170124.zip
So this is the epagent structure that I am planning on using within source control to manage the sea of custom and changed files.
So far, this structure has cut down on the variants and explaining what goes where such as the AIX epagent goes under epagent/production/AIX/host and that one is RedHat so it goes into the epagnet/production/RHEL/Host. But the only real difference is the existence of different plugins and the introscopeEPAgent.properties file.
When I get around to the Application agents (websphere, weblogic, .NET) and have to deal with pbl/pbd and .profile I'll try to post what I am planning on doing.
Cheers,
Billy