Ad Widget

Collapse

Value mapping - export

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Crypty
    Member
    • Jul 2012
    • 80

    #1

    Value mapping - export

    Hi,

    can I export my Value Mapping at Zabbix 1.8.12? I can't find it. I have a lot of mappings...

    I tried to export the template file, but the Value mapping isn't in there I think. There is a row like:
    Code:
    <valuemapid>14</valuemapid>
    But There is no syntax what is the meaning of ID "14"...

    Thanks!
  • Crypty
    Member
    • Jul 2012
    • 80

    #2
    Hi,

    I found a solution, but it's not perfect. You have to use "mysqldump" command at the shell environment.

    Code:
    mysqldump zabbix valuemaps > valuemaps.export.sql
    mysqldump zabbix mappings > mappings.export.sql
    Where "zabbix" is the database name. "valuemaps" and "mappings" are table names.

    In case there is already some value mapping where you want to insert these values, you have to probably manually insert them via GUI or edit the exported files...

    Any better solution?

    Comment

    Working...