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. [Solved] graf and alert on data from temperature weblog

[Solved] graf and alert on data from temperature weblog

Scheduled Pinned Locked Moved Support
7 Posts 2 Posters 29.5k 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.
  • G
    G
    Goriem
    wrote on last edited by
    #1

    Hi

    i have a temperature monitoring device that logs temperature to an onboard log file accessible over web like this : http://ipadress/spilog.txt

    i logs the temperature ever 5 minutes in this format:

    2012/03/23;09:35:00;0;3;3;1;0;2;0;3;0;
    2012/03/23;09:35:00;0;4;2;151;0;152;0;
    2012/03/23;09:40:00;0;0;1;59300;276;
    2012/03/23;09:40:00;0;3;3;1;0;2;0;3;0;
    2012/03/23;09:40:00;0;4;2;151;0;152;0;
    2012/03/23;09:45:00;0;0;1;59300;276;
    2012/03/23;09:45:00;0;3;3;1;0;2;0;3;0;
    2012/03/23;09:45:00;0;4;2;151;0;152;0;
    2012/03/23;09:50:00;0;0;1;59300;277;
    2012/03/23;09:50:00;0;3;3;1;0;2;0;3;0;
    2012/03/23;09:50:00;0;4;2;151;0;152;0;
    2012/03/23;09:55:00;0;0;1;59300;276;
    2012/03/23;09:55:00;0;3;3;1;0;2;0;3;0;
    2012/03/23;09:55:00;0;4;2;151;0;152;0;
    2012/03/23;10:00:00;0;0;1;59300;275;
    2012/03/23;10:00:00;0;3;3;1;0;2;0;3;0;
    2012/03/23;10:00:00;0;4;2;151;0;152;0

    now i would like to collect info from: where i can identify the temp monitor and current value
    2012/03/23;10:00:00;0;0;1;59300;275;
    device---------------------------^
    current value----------------------------^  <- in this case the temperature is 27,5 degrees celcius

    what approach is the best in order log log and alert based upon these values?

    regards

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

      I would create a script which will get the file, parse it, and push values to NetXMS server using nxpush command. Then you can work with the values as usual - set thresholds, show history, etc.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • G
        G
        Goriem
        wrote on last edited by
        #3

        Thankyou Victor for your reply - do you have any links to this sort of thing - using nxpush and scripting to get values? - i have searched the forum but i might not know what to search for. i quite new with this advanced (for me anyway) usage of Netxms

        1 Reply Last reply
        0
        • G
          G
          Goriem
          wrote on last edited by
          #4

          I ended up solving it via externalparameter, wrote a vb script to parse the value from the weblog and returning it to the node works like a charm allthough i had to restart the Netxms core server before i could "rearm" the value when falling below configured threshold.

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

            @goriem said in [Solved] graf and alert on data from temperature weblog:

            I ended up solving it via externalparameter, wrote a vb script to parse the value from the weblog and returning it to the node works like a charm allthough i had to restart the Netxms core server before i could "rearm" the value when falling below configured threshold.

            Can you show me configuration of your thresholds? That should not require server restart.

            Best regards,
            Victor

            1 Reply Last reply
            0
            • G
              G
              Goriem
              wrote on last edited by
              #6

              sorry i have nowhere to store image online right now - but my threshold is set to:

              This threshold will be activated if last polled value for 1 consecutive samples will be greater or equal than 30

              repeat event Use default settings

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

                What events are generated on activation and deactivation of the threshold? Could you check than in case when value goes back to normal level deactivation event is generated or not?

                Best regards,
                Victor

                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