Added device name support to Cacti templates