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. Monitor web page content change check

Monitor web page content change check

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 45.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.
  • K
    K
    Kelvin Sin
    wrote on last edited by
    #1

    Dear all,

    In monitored web page, it contains value in <lastdataintime> field as shown below.

    <lastdataintime>16:21:17 18/12/2010</lastdataintime>

    My task is to monitor if there is any change for this value -16:21:17 18/12/2010

    Email alert will be sent if the value of XML tag "<lastdataintime>" is unchanged every 3 minutes.

    Is it possible to monitor change of web page content?

    I would be appreicate if you have any hints about configuration.

    Regards,
    Kelvin Sin

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

      Hi!

      At a first glance, looks like you will need some external script. With built-in mechanisms, you can only check for entire page changes using ECS subagent. This subagent provides parameter which returns hash for given URL - so you can detect change in that page, but you cannot determine what part of the page was changed.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • K
        K
        Kelvin Sin
        wrote on last edited by
        #3

        Dear Victor

        Detect change in that page doesn't help for me. It is because i need to detect portion of change in web page. Is there any idea about writing external script, please? Please advice.

        Regards,
        Kelvin Sin

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

          You can use wget to get content of a web page. For example, the following externa parameter returns version listed on NetXMS download page (https://www.netxms.org/download😞

          ExternalParameter = WebVersion:wget -qO- https://www.netxms.org/download | perl -e 'while(<>) { chomp $$_; if ($$_ =~ /stable version is ([0-9\.]+)\,/) { print "$$1\n"; } }'
          

          Please note, that original shell command looks like

          wget -qO- https://www.netxms.org/download | perl -e 'while(<>) { chomp $_; if ($_ =~ /stable version is ([0-9\.]+)\,/) { print "$1\n"; } }'
          

          but you need to duplicate $ symbol, because it is used for macro expansion in external parameter configuration.

          Result of this parameter looks like following:

          netxms:~ # nxget 10.0.0.90 WebVersion
          1.0.8
          netxms:~ #
          

          Best regards,
          Victor

          1 Reply Last reply
          0
          • K
            K
            Kelvin Sin
            wrote on last edited by
            #5

            Dear Victor

            Thank you for your reply. Where do i insert external parameter in NetXMS? Do i put it in DCI?
            I would be appreicated if you could instruct more detail information. Thank you.

            P.S. I am running windows server 2003 OS in server side.

            Regards,
            Kelvin Sin

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

              Hi!

              You can add additional parameters to agent using ExternalParameter config file option. For example, you can add to nxagentd.conf on some node

              ExternalParameter = WebVersion:wget -qO- https://www.netxms.org/download | perl -e 'while(<>) { chomp $$_; if ($$_ =~ /stable version is ([0-9\.]+)\,/) { print "$$1\n"; } }'
              

              After that, agent will provide additional parameter named WebVersion. You can get value of this parameter by creating new DCI on this node, and create thresholds to detect value changes.

              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