Ad Widget

Collapse

Cannot add Template to host

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cico_lt
    Junior Member
    • Feb 2016
    • 20

    #1

    Cannot add Template to host

    Hi,

    I'm using Zabbix 3.01 on CentOS 7.2 with Mysql.

    I've a strange issue: when I try to add a new host and add a simple Template, like i.e. "Template OS Linux", Zabbix returns the error "Error in query [INSERT INTO graphs (graphid,name,width,height,yaxismin,yaxismax,templ ateid,show_work_period,show_triggers,graphtype,sho w_legend,show_3d,percent_left,percent_right,ymin_t ype,ymax_type,ymin_itemid,ymax_itemid,flags) VALUES ('3116','Network traffic on {#IFNAME}','900','200','0.0000','100.0000','420',' 1','1','0','1','0','0.0000','0.0000','1','0',NULL, NULL,'2')] [Duplicate entry '3116' for key 'PRIMARY']
    SQL statement execution has failed "INSERT INTO graphs (graphid,name,width,height,yaxismin,yaxismax,templ ateid,show_work_period,show_triggers,graphtype,sho w_legend,show_3d,percent_left,percent_right,ymin_t ype,ymax_type,ymin_itemid,ymax_itemid,flags) VALUES ('3116','Network traffic on {#IFNAME}','900','200','0.0000','100.0000','420',' 1','1','0','1','0','0.0000','0.0000','1','0',NULL, NULL,'2')"."

    If I try to add "Template App Zabbix Agent", I have no problems.

    For each new host, just for to be sure, I create new HostGroup, without Template Linked.

    I don't understand what the problem is. I didn't find anything on this Forum.

    Can somebody Help Me ?

    Thanks in advance
  • cico_lt
    Junior Member
    • Feb 2016
    • 20

    #2
    Solved

    Hi,

    I solved by myself

    The problem was that I deleted, by mistake, a default Zabbix Template .... and then I imported It again from another Zabbix server... but from that time whenever I tried to link THAT Template, I received an error ... so I restore the old DB with the original Template

    Thanks anyway

    Comment

    Working...