Monitoring of Webpage

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
acvillaester
Posts: 21
Joined: Fri Nov 17, 2017 11:06 am

Monitoring of Webpage

Post 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.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Monitoring of Webpage

Post 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.
Former Nagios employee
https://www.mcapra.com/
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Monitoring of Webpage

Post by tmcdonald »

Thanks for the assist, @mcapra! OP, please let us know if you need further assistance.
Former Nagios employee
Locked