I am trying to modify the template of the alert notification. I see in the template code it tries to display ambari url but it never displays that. The lower end of the template reads like
<div class="ambari-footer"> This notification was sent to $dispatch.getTargetName() <br/> Apache Ambari $ambari.getServerVersion() #if( $ambari.hasUrl() ) <br/> Ambari Server link: <a href=$ambari.getUrl()>$ambari.getUrl()</a> #end </div> </html> ]]> </body>
But I think method
is always false. I tried printing the
but it displays as it is. In the emails I see "$ambari.getUrl()". I checked the code
@Inject private Configuration m_configuration;
I am not sure from where it is getting injected from. Any suggestions why ambari url is not coming in the configs.
ambari.display.url = http://100.123.123.123:8080 in properties file
but I still dont see ambari url in the email. I manually added
$ambari.getUrl() but it gets in the email as it is. Any other thing that I can do?