Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. SQL query failed

SQL query failed

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 16.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U
    U
    [email protected]
    wrote on last edited by
    #1

    Hi,
        Iam getting the below error when a node is down (or) if at all there is any event happen,

    SQL query failed (Query = "INSERT INTO event_log                                                                              (event_id,event_code,event_timestamp,event_source,event_severity,event_message,                                                                            root_event_id,user_tag) VALUES (133,15,1263203635,21,1,'Native agent is not resp                                                                            onding',0,'')"): Duplicate entry '133' for key 1

    [11-Jan-2010 15:25:17] SQL query failed (Query = "INSERT INTO alarms (alarm_id,c                                                                            reation_time,last_change_time,source_object_id,source_event_code,message,origina                                                                            l_severity,current_severity,alarm_key,alarm_state,ack_by,hd_state,hd_ref,repeat_                                                                            count,term_by,timeout,timeout_event,source_event_id) VALUES (2,1263203717,126320                                                                            3717,21,28,'blr-noc-04',4,4,'NODE_DOWN_0x00000015',0,0,0,'',1,0,0,43,139)"): Dup                                                                            licate entry '2' for key 1

    Can you please help me in this

    Thanks,
    Subbu

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi!

      Looks like your database is somewhat broken. Could you please run netxmsd with -D 9 option (highest debug level) for a short time and post netxmsd log to [email protected]?

      Best regards,
      Victor

      1 Reply Last reply
      0
      • U
        U
        [email protected]
        wrote on last edited by
        #3

        Hi,
            Thanks for your Valuable help, I followed the steps and Sent the logs to [email protected]? . Please advice me what are the steps that i need to follow

        Thanks & Regards,
        Subbu

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups