cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PHP Agent configuration using Linux environemnt vars

Anonymous
Not applicable

Is it possible to configure the apache virtualhost settings for the php agent to use to use the linux environemnt var for hostname --> $HOSTNAME  or something to the affect of $HOSTNAME - virtappname

 

php_value agent.nodeName frontend-node1

 

We have a common apache httpd conf file that gets edited and then rolled out to the cluster. All other php config settings are the same except the hostname used for each virtual app. 

 

 

1 REPLY 1

Kyle.Furlong
AppDynamics Team (Retired)

Hi Richard,

 

I believe we can use the ${ENVVAR} substitution syntax in this case. So you could do:

php_value agent.nodeName ${HOSTNAME}

Assuming that HOSTNAME is in the environment variables for the Apache process. 

Thanks,
Kyle Furlong, Technical Lead (C++ and Dynamic Languages)




Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Ask the Experts Session: Hybrid Application Monitoring Deployment

Join us on Feb 26 to explore Splunk AppDynamics deployment strategies, SaaS models, agent rollout plans, and expert best practices.


Register Now

Observe and Explore
Dive into our Community Blog for the Latest Insights and Updates!


Read the blog here
Top Kudoed Authors