Nagios plugin that will check a website and compares the content to a specified string or file.
Usage: check_http_content_equals --url <string> --compare-to <string> [--compare-to-file <string>] [--contains] [--ua <string>] [--cookie <data> [--cookie <data>]]
OR check_http_content_equals --help
OR check_http_content_equals --version
> check_http_content_equals --url "https://blog.fefe.de/?ts=b5ff0762" --compare-to "$(cat example_compare.txt)" --ua "curl/7.37.0"
[OK] Content matches!
Url: https://blog.fefe.de/?ts=b5ff0762
----------------------------------------
Diff:
> check_http_content_equals --url "https://blog.fefe.de/?ts=b5ff0762" --compare-to-file "example_compare.txt"
[OK] Content matches!
Url: https://blog.fefe.de/?ts=b5ff0762
----------------------------------------
Diff:
> check_http_content_equals --url "https://blog.fefe.de/?ts=b5ff0762" --compare-to-file "example_compare.txt" --cookie "css=fefe.css"
[OK] Content matches!
Url: https://blog.fefe.de/?ts=b5ff0762
----------------------------------------
Diff: