'ip':'', 'dns':host_interface[0]['dns'], 'port':host_interface[0]['port'] }, 'groups':[{ 'groupid':jasper_groupid }], 'templates':[{ 'templateid':jta_templateID }] }) ##################################################### # Add log items and the screens to display # Get host id ##################################################### information = mule_zabbix.z_info(mule_zabbix.jmp_info('mule_zabbix.properties')['jsb_z_agent_conf']) host_log = z.host.get( { 'filter': { 'host': information['Hostname']}, 'output': 'extend' }) print "JTA add a new host" logging.debug("JTA add a new host") ##################################################### #Add item using host ID ##################################################### JTA_log_applicaitonID = z.application.get( { 'hostids':host_log[0]['hostid'], 'filter': { 'name': 'JTA-Logs'}, 'output': 'extend'
print "list empty noting to update \n" else: # start adding JTA hosts for item in deployed_jta_list["deployed_apps"]: if item in deployed_jta_applicaiton_list: # print item # print "\n Item is already added" logging.debug(item) logging.debug("\n Item is already added") continue else: ##################################################### # Add log items and the screens to display # get host id ##################################################### information = mule_zabbix.z_info(zabbix_info["jsb_z_agent_conf"]) print "##############Information####################" print information ##################################################### # Add log item for the JTA-Log applicaiton ##################################################### jta_log_applicaitonID = mule_zabbix.get_jta_log_applicaitonID(z, jta_server_hostID) print "######LOG-ApplicaitonID##############" print jta_log_applicaitonID ##################################################### # Get interface ID ##################################################### jta_interfaceID = mule_zabbix.get_interface(z, jta_server_hostID) print "######Interface ID##############" print jta_interfaceID