Page 1 of 1
Monitoring of Webpage
Posted: Tue Jul 03, 2018 10:43 pm
by acvillaester
Hi,
There has been recently a case where the company's website:
www.xxx.com itself was redirected to another URL. This redirection was detected quickly but only by coincidence.
I would like to ask if there is existing monitoring of the content of the site (using Nagios).
Thanks.
Re: Monitoring of Webpage
Posted: Thu Jul 05, 2018 8:24 am
by mcapra
The check_http plugin included with the
nagios-plugins package allows for checking of a page's content as well as the response code of the page.
From the plugin's
help section:
Code: Select all
-s, --string=STRING
String to expect in the content
...
-e, --expect=STRING
Comma-delimited list of strings, at least one of them is expected in
the first (status) line of the server response (default: HTTP/1.)
If specified skips all other status line logic (ex: 3xx, 4xx, 5xx processing)
Additionally, here are some sample usages of the plugin (see "Monitoring HTTP"):
https://assets.nagios.com/downloads/nag ... vices.html
If you followed
the official documentation for compiling Nagios Core from source, the "Installing The Nagios Plugins" section covers how to setup the nagios-plugins package.
Re: Monitoring of Webpage
Posted: Thu Jul 05, 2018 9:38 am
by tmcdonald
Thanks for the assist,
@mcapra! OP, please let us know if you need further assistance.