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