I am attempting to add a template to a host, it looks to create the applications and items, but it doesn't bring over the triggers. This is what happens when attempting to add the template:
Cannot update host
Details
• Created: Item "SQL: Service State - SQL Server" on "SQLServ5".
• Created: Item "SQL: Service State - SQL Agent" on "SQLServ5".
• Created: Application "Availability" on "SQLServ5".
• Created: Application "CPU" on "SQLServ5".
• Created: Application "Filesystem" on "SQLServ5".
• Created: Application "General" on "SQLServ5".
• Created: Application "Integrity" on "SQLServ5".
• Created: Application "Memory" on "SQLServ5".
• Created: Application "Network" on "SQLServ5".
• Created: Application "OS" on "SQLServ5".
• Created: Application "Performance" on "SQLServ5".
• Created: Application "Processes" on "SQLServ5".
• Created: Application "Services" on "SQLServ5".
• Error in query [INSERT INTO items_applications (applicationid,itemid,itemappid) VALUES ('1725','44928','17326')] [Duplicate entry '17326' for key 'PRIMARY']
• SQL statement execution has failed "INSERT INTO items_applications (applicationid,itemid,itemappid) VALUES ('1725','44928','17326')".
I've tried deleting that itemappid from the items_applications table, but it just recreates it or gives the same error on a different itemappid.
Cannot update host
Details
• Created: Item "SQL: Service State - SQL Server" on "SQLServ5".
• Created: Item "SQL: Service State - SQL Agent" on "SQLServ5".
• Created: Application "Availability" on "SQLServ5".
• Created: Application "CPU" on "SQLServ5".
• Created: Application "Filesystem" on "SQLServ5".
• Created: Application "General" on "SQLServ5".
• Created: Application "Integrity" on "SQLServ5".
• Created: Application "Memory" on "SQLServ5".
• Created: Application "Network" on "SQLServ5".
• Created: Application "OS" on "SQLServ5".
• Created: Application "Performance" on "SQLServ5".
• Created: Application "Processes" on "SQLServ5".
• Created: Application "Services" on "SQLServ5".
• Error in query [INSERT INTO items_applications (applicationid,itemid,itemappid) VALUES ('1725','44928','17326')] [Duplicate entry '17326' for key 'PRIMARY']
• SQL statement execution has failed "INSERT INTO items_applications (applicationid,itemid,itemappid) VALUES ('1725','44928','17326')".
I've tried deleting that itemappid from the items_applications table, but it just recreates it or gives the same error on a different itemappid.
Comment