Ad Widget

Collapse

Items increment in Zabbix 2.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FineMEDIA
    Junior Member
    • May 2018
    • 3

    #1

    Items increment in Zabbix 2.2

    Hi,

    I need info where in Zabbix 2.2 is stored last item id.When i added new item to database with sql query i have this info: '[Duplicate entry '123110' for key 'PRIMARY']' . I don't want to remove sql added items.

    Best regards,
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Have you added values directly to the database?
    If you want to add directly in the database, you need to add data that is consistent.
    It is not recommended to manipulate the database directly.

    Depending on the item, you may be able to add item values using the zabbix_sender command.
    You can also create a file and register the value of an item with a specific time stamp.

    Comment

    • FineMEDIA
      Junior Member
      • May 2018
      • 3

      #3
      Hi,

      Thanks for response. Now i need information how can i repair this. I don;t wanna remove inserted data from database.

      Comment

      • kernbug
        Senior Member
        • Feb 2013
        • 330

        #4
        Originally posted by FineMEDIA
        Hi,

        Thanks for response. Now i need information how can i repair this. I don;t wanna remove inserted data from database.
        Hi

        Backup and try to replace table, example:
        Tables or result sets in a database usually contain duplicate records. While duplicates are generally allowed, there are situations where it is necessary to prevent them. In such cases, it becomes essential to identify and remove duplicate records from a database table.

        Comment

        • FineMEDIA
          Junior Member
          • May 2018
          • 3

          #5
          Do you know where intems_id couter are stored? In database or some config file?

          Comment

          • kernbug
            Senior Member
            • Feb 2013
            • 330

            #6
            Originally posted by FineMEDIA
            Do you know where intems_id couter are stored? In database or some config file?
            Database, items table, also get a backup and check foreign keys before doing something.

            Comment

            Working...