# Basically what you need is a specific character chain to read on a website, to make sure that
# it is up and running, just like we did with the Nagios browser.
# We are going to keep on checking and to keep an eye this site if it is reachable or if it has been changed.
# First we ensure that the SSL cert prerequisites are installed.
# make it ready for nagios user and nagioscmd user group
# then make it and install it
apt-get install libssl-dev
cd /home/nagios/downloads/nagios-plugins-2.2.1/
./configure --with-nagios-user=nagios --with-nagios-group=nagcmd --with-openssl=/usr/bin/openssl
make
make install
# create a config file - I will check my own blog,
# being an ultra runner, that is one of the first websites in history
define host {
host_name leventedorogi.blogspot.com
address www.leventedorogi.blogspot.com
check_command check_ping!3000.0,50%!5000.0,80%
max_check_attempts 3
}
define command {
command_name check-http-blog
command_line $USER1$/check_http -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -u $ARG3$ -s $ARG4$ -m $ARG5$ -p 443 -S
}
define service {
service_description HTTPS on myblog
host_name leventedorogi.blogspot.com
check_command check-http-blog!1!2!/2024/04//!'2024'!200
max_check_attempts 3
}
# Basically what I did here is went onto a specific page in my blog
# and checked for the 2024 string on that page and till it is up,
# my page is up too, unchanged.
# We were a little lazy about giving all the obligatory arguments
# but it works. For the sake of testing, it is okay.
# Modify it to your needs.
_dnhyper


No comments:
Post a Comment