Ad Widget

Collapse

Can't copy items from a host to a template. Getting an error re: jmx_endpoint field?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • toddblake
    Junior Member
    Zabbix Certified Specialist
    • Jul 2011
    • 27

    #1

    Can't copy items from a host to a template. Getting an error re: jmx_endpoint field?

    I'm trying to copy two log items from a host to a template, and I'm receiving this error. I'm 100% stumped...

    Cannot copy items Incorrect value for field "jmx_endpoint": should be empty.

    I checked the two items off from the list of items, clicked the "copy" button at the bottom. On the next screen I selected "Templates" under Target Type, and picked my template. Now I've got this error...
  • toddblake
    Junior Member
    Zabbix Certified Specialist
    • Jul 2011
    • 27

    #2
    Hoping someone has seen this, it still persists in 5.0.4. I'll file a bug here shortly.

    Comment

    • toddblake
      Junior Member
      Zabbix Certified Specialist
      • Jul 2011
      • 27

      #3

      Comment

      • toddblake
        Junior Member
        Zabbix Certified Specialist
        • Jul 2011
        • 27

        #4
        I found I'm able to copy the item if I go into the database and clear out the jmx_endpoint field. By default it has a single quote in it, even though jmx isn't configured on the host or the item.



        MariaDB [zabbix]> select jmx_endpoint from items where itemid=33909;
        +--------------+
        | jmx_endpoint |
        +--------------+
        | ' |
        +--------------+
        1 row in set (0.000 sec)MariaDB [zabbix]> update items set jmx_endpoint='' where itemid=33909;
        Query OK, 1 row affected (0.023 sec)
        Rows matched: 1 Changed: 1 Warnings: 0MariaDB [zabbix]> select jmx_endpoint from items where itemid=33909;
        +--------------+
        | jmx_endpoint |
        +--------------+
        | |
        +--------------+
        1 row in set (0.000 sec)

        Comment

        Working...