We would like to monitor and be alerted if the checksum changes on an HTML page that externally hosted. Has anyone developed such a monitor? From what I can tell the current file change monitor is limited to UNC paths on windows hosts.
I've come up with a script to do a checksum with curl and md5sum on a linux host but the result isn't a statistic, so I can not use the mark statistic as difference in the template to alert if it changes.
Any help would be appreciated!
#!/usr/bin/perl
@stat=split(" ",`curl -s "https://www.google.com/intl/en/policies/terms/regional.html" | md5sum`);
$exit=`echo $?`;
if ( $exit == 0 ) {
print "Message: MD5Checksum: $stat[0]\n";
print "Statistic: $stat[0]\n";
exit 0;
}
print "Message: ERROR: Check the command (curl) syntax in script.\n";
exit
Thanks
Steve