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. DCI last values don't store history data

DCI last values don't store history data

Scheduled Pinned Locked Moved Support
31 Posts 4 Posters 88.7k 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.
  • V
    V
    Victor Kirhenshtein
    wrote on last edited by
    #2

    Hi,

    could be database issue or time zone issue. In database you should have table idata_nnn, where nnn is actual node object ID. Check if you have any records in that table. If yes, check that time on your server is correct and that time zone is correct as well. Internally server and client uses UTC timestamps, so even when time looks identical it may in fact be incorrect on one side when concerted to UTC. If there are no records in idata table then likely there is issue with storing data to database - in that case check server log for SQL errors.

    Best regards,
    Victor

    1 Reply Last reply
    0
    • X
      X
      xelander
      wrote on last edited by
      #3

      Hi,
      thank you very much for your answer, I checked the DB and the data seems to be there (see screeshots).

      Timestamps seem correct too: in the table they're UTC and on the server and client the time is CEST (UTC+1, +2 with daylight savings).
      Even if they were wrong, shouldn't I at least see the values in the "History" view, albeit with wrong timestamps?

      Thanks,
      Alessandro


      dci-db-idata.PNG

      dci-timestamp.PNG

      server-time.PNG

      1 Reply Last reply
      0
      • F
        F
        Filipp Sudanov
        wrote on last edited by
        #4

        This looks to be very strange. I would suggest to turn on debugging from the database side to see what exactly queries are generated when you request history / graph from the front-end. And then checking if such a query really returns any data.
        Also, if it's fine for you to recreate the database you can try to move to Postgres - it's generally more tested because more netxms users are using it.

        1 Reply Last reply
        0
        • F
          F
          Filipp Sudanov
          wrote on last edited by
          #5

          Also - 3.4.284 is now available, it has a fix for one error that was also related to not displaying historic data, could be that it's the same error here. Please try this new version.

          1 Reply Last reply
          0
          • X
            X
            xelander
            wrote on last edited by
            #6

            Hello,
            I enabled query logging on the DB and the query seems to be correct, and it returns valid data (see attachements):

            SELECT idata_timestamp,idata_value,raw_value FROM idata_2069 WHERE item_id=682 ORDER BY idata_timestamp DESC LIMIT 4096
            

            I'll try the new version as soon as possible, and I'll let you know.

            Thanks,
            Alessandro


            query-log.png

            query-data-ok.png

            1 Reply Last reply
            0
            • X
              X
              xelander
              wrote on last edited by
              #7

              Hi,
              I upgraded to version 3.4.284, both the server and the management console, but unfortunately nothing changed.

              The query is the same:

              SELECT idata_timestamp,idata_value,raw_value FROM idata_2069 WHERE item_id=682 ORDER BY idata_timestamp DESC LIMIT 4096
              

              but still no data is displayed in the History view or in the Charts view, and I cannot find any error in MariaDB nor Netxms logs.

              Is there anything alse I can try to debug the problem?

              Thanks,
              Alessandro

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

                Try to change DCI data type to "String" and request history - will it show something?

                Best regards,
                Victor

                1 Reply Last reply
                0
                • X
                  X
                  xelander
                  wrote on last edited by
                  #9

                  Nothing changed, sorry  😢


                  type-string.PNG

                  1 Reply Last reply
                  0
                  • F
                    F
                    Filipp Sudanov
                    wrote on last edited by
                    #10

                    How did you compile netxms - can you show config.log file? Can you show the output of yum list installed

                    1 Reply Last reply
                    0
                    • X
                      X
                      xelander
                      wrote on last edited by
                      #11

                      Hi,I followed the directions on the "NetXMS Administrator Guide, Release 3.4.178", chapter "3.6  Installing from sources", that is:

                      # ./configure --with-server --with-mysql --with-agent
                      # make
                      # make install
                      

                      I'm attaching the config.log and the output of yum list installed.If you need anything else, please let me know.

                      Thank you,Alessandro


                      logs.zip

                      1 Reply Last reply
                      0
                      • F
                        F
                        Filipp Sudanov
                        wrote on last edited by
                        #12

                        As an experiment - can you try to a different configure command:

                        ./configure prefix=/opt/netxms-master --with-server --with-mariadb --with-mariadb-compat-headers --with-agent

                        1 Reply Last reply
                        0
                        • X
                          X
                          xelander
                          wrote on last edited by
                          #13

                          I tried (see attached config.log), but the issue is still present.
                          The query is the same as before:

                          200806 15:54:06    266 Prepare  SELECT idata_timestamp,idata_value,raw_value FROM idata_2069 WHERE item_id=? ORDER BY idata_timestamp DESC LIMIT 4096
                                             266 Execute  SELECT idata_timestamp,idata_value,raw_value FROM idata_2069 WHERE item_id=683 ORDER BY idata_timestamp DESC LIMIT 4096
                                             266 Close stmt
                          

                          I was wondering if it could be a client issue, instead of a server one.
                          After all, if the server had a problem SELECT'ing data from the DB, almost nothing would work...


                          config.zip

                          1 Reply Last reply
                          0
                          • F
                            F
                            Filipp Sudanov
                            wrote on last edited by
                            #14

                            What's the operating system where the client is running? What's client version? Is it downloaded from netxms web site?
                            For testing - may be you could try the client on another machine, preferrably on a different OS.

                            1 Reply Last reply
                            0
                            • X
                              X
                              xelander
                              wrote on last edited by
                              #15

                              I tried the Windows client (nxmc-3.4.284-win32-x64.zip) both on Windows 7 and on Windows 10, but I also tried the web interface (nxmc-3.4.284.war), everything downloaded from the netxms website, so it seems the issue doesn't depend on the client OS.
                              I still have to try on Linux...

                              1 Reply Last reply
                              0
                              • X
                                X
                                xelander
                                wrote on last edited by
                                #16

                                Today I also tried on Linux CentOS 8, (nxmc-3.4.284-linux-gtk-x64.tar.gz) but nothing changed: no historical data.This is so strange that now I wonder if I'm doing something wrong...

                                1 Reply Last reply
                                0
                                • F
                                  F
                                  Filipp Sudanov
                                  wrote on last edited by
                                  #17

                                  Does it happen that there are no historical data for all DCIs in system, or just for some DCIs?

                                  1 Reply Last reply
                                  0
                                  • X
                                    X
                                    xelander
                                    wrote on last edited by
                                    #18

                                    I've not configured many DCIs yet, but it seems no DCI shows historical data.
                                    I've added a couple of other DCI on a different switch (3Com vs CISCO), but still no historical data in the GUI.

                                    Even default DCIs for the NetXMS server itself show no historical data (see attachments).
                                    The only strange thing I'm noticing now, is the <<ERROR>> value for the only DCI coming from the NetXMS agent on the server.


                                    3com-dci.PNG

                                    3com-dci-values.PNG

                                    netxms-dci-values.PNG

                                    1 Reply Last reply
                                    0
                                    • F
                                      F
                                      Filipp Sudanov
                                      wrote on last edited by
                                      #19

                                      One more thing to have a look at - console writes it's own log file in user's home folder in \.nxmc\data\.metadata
                                      Can you share what you have there?

                                      1 Reply Last reply
                                      0
                                      • X
                                        X
                                        xelander
                                        wrote on last edited by
                                        #20

                                        Here they are.


                                        nxmc-metadata-windows7.zip

                                        nxmc-metadata-centos8.tgz

                                        1 Reply Last reply
                                        0
                                        • F
                                          F
                                          Filipp Sudanov
                                          wrote on last edited by
                                          #21

                                          Did you try to open the dci graph / history during the duration of that log?

                                          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