Terrence
Dec 05, 2011Nimbostratus
dns lookups in an iapp template
I am having a hard time being able to get this working.
The application administrators use dns names to remember which servers host which applications, so I would like my nodes to be named accordingly so that alerts have useful information.
I am attempting to modify the default http template, so that it creates the nodes with names provided by dns.
I thought that doing using tmsh::run +short -x ip_address would allow me to do a reverse. It does infact do a reverse, however i do not believe that the value is returned to the set server_name, but instead printed to stdout.
Is there any other way that I could accomplish this?
set server_name [tmsh::run util dig +short -x $server_addr]