- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Let's Install Healthchecks - Cron Job Monitoring Service - On Linux
#Healthchecks #Cron #Linux
Full steps can be found at https://i12bretro.github.io/tutorials/0781.html
--------------------------------------------------------------------
What is Healthchecks?
--------------------------------------------------------------------
Healthchecks is a cron job monitoring service. It listens for HTTP requests and email messages ("pings") from your cron jobs and scheduled tasks ("checks"). When a ping does not arrive on time, Healthchecks sends out alerts.
Healthchecks comes with a web dashboard, API, 25+ integrations for delivering notifications, monthly email reports, WebAuthn 2FA support, team management features: projects, team members, read-only access. - https://github.com/healthchecks/healthchecks
--------------------------------------------------------------------
Installing HeathChecks
--------------------------------------------------------------------
01. Log into the Linux device
02. Run the following commands in the terminal
# update software repositories
sudo apt update
# install available software updates
sudo apt upgrade -y
# install prerequisites
sudo apt install git gcc python3-dev python3-venv libpq-dev -y
# create a working directory
mkdir healthchecks
# change directory to the working directory
cd healthchecks
# prepare the working directory
python3 -m venv hc-venv
source hc-venv/bin/activate
# install wheel
pip3 install wheel
# clone healthchecks from github
git clone https://github.com/healthchecks/healthchecks.git
# install healthchecks
pip install -r healthchecks/requirements.txt
# cd into ./healthchecks
cd healthchecks
# initialize database
./manage.py migrate
# create an admin user
./manage.py createsuperuser
# enter an email address
# enter and confirm a password
# run healthchecks server
./manage.py runserver
03. Open a web browser and navigate to http://DNSorIP:8000
04. Login with the admin account created earlier
05. Welcome to HealthChecks
--------------------------------------------------------------------
Running Healthchecks as a Service
--------------------------------------------------------------------
01. Go back to the open terminal and press CTRL+C to kill the running Healthchecks process
02. Continue with the following commands
# change directories back to home
cd ~
# move the healthchecks folder to opt
sudo mv ./healthchecks /opt/
# create healthchecks service file
sudo nano /etc/systemd/system/healthchecks.service
03. Paste the following configuration into healthchecks.service
[Unit]
Description=Healthchecks
After=multi-user.target
[Service]
ExecStart=/opt/healthchecks/hc-venv/bin/python /opt/healthchecks/healthchecks/manage.py runserver
Restart=always
WorkingDirectory=/opt/healthchecks/healthchecks
[Install]
WantedBy=multi-user.target
04. Press CTRL+O, Enter, CTRL+X to write the changes
05. Continue with the following commands
# reload systemd services
sudo systemctl daemon-reload
# start and enable the healthchecks service
sudo systemctl enable healthchecks --now
06. Back in the web browser refresh the Healthchecks page
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro
Видео Let's Install Healthchecks - Cron Job Monitoring Service - On Linux канала i12bretro
Full steps can be found at https://i12bretro.github.io/tutorials/0781.html
--------------------------------------------------------------------
What is Healthchecks?
--------------------------------------------------------------------
Healthchecks is a cron job monitoring service. It listens for HTTP requests and email messages ("pings") from your cron jobs and scheduled tasks ("checks"). When a ping does not arrive on time, Healthchecks sends out alerts.
Healthchecks comes with a web dashboard, API, 25+ integrations for delivering notifications, monthly email reports, WebAuthn 2FA support, team management features: projects, team members, read-only access. - https://github.com/healthchecks/healthchecks
--------------------------------------------------------------------
Installing HeathChecks
--------------------------------------------------------------------
01. Log into the Linux device
02. Run the following commands in the terminal
# update software repositories
sudo apt update
# install available software updates
sudo apt upgrade -y
# install prerequisites
sudo apt install git gcc python3-dev python3-venv libpq-dev -y
# create a working directory
mkdir healthchecks
# change directory to the working directory
cd healthchecks
# prepare the working directory
python3 -m venv hc-venv
source hc-venv/bin/activate
# install wheel
pip3 install wheel
# clone healthchecks from github
git clone https://github.com/healthchecks/healthchecks.git
# install healthchecks
pip install -r healthchecks/requirements.txt
# cd into ./healthchecks
cd healthchecks
# initialize database
./manage.py migrate
# create an admin user
./manage.py createsuperuser
# enter an email address
# enter and confirm a password
# run healthchecks server
./manage.py runserver
03. Open a web browser and navigate to http://DNSorIP:8000
04. Login with the admin account created earlier
05. Welcome to HealthChecks
--------------------------------------------------------------------
Running Healthchecks as a Service
--------------------------------------------------------------------
01. Go back to the open terminal and press CTRL+C to kill the running Healthchecks process
02. Continue with the following commands
# change directories back to home
cd ~
# move the healthchecks folder to opt
sudo mv ./healthchecks /opt/
# create healthchecks service file
sudo nano /etc/systemd/system/healthchecks.service
03. Paste the following configuration into healthchecks.service
[Unit]
Description=Healthchecks
After=multi-user.target
[Service]
ExecStart=/opt/healthchecks/hc-venv/bin/python /opt/healthchecks/healthchecks/manage.py runserver
Restart=always
WorkingDirectory=/opt/healthchecks/healthchecks
[Install]
WantedBy=multi-user.target
04. Press CTRL+O, Enter, CTRL+X to write the changes
05. Continue with the following commands
# reload systemd services
sudo systemctl daemon-reload
# start and enable the healthchecks service
sudo systemctl enable healthchecks --now
06. Back in the web browser refresh the Healthchecks page
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro
Видео Let's Install Healthchecks - Cron Job Monitoring Service - On Linux канала i12bretro
Комментарии отсутствуют
Информация о видео
1 августа 2024 г. 14:00:41
00:02:34
Другие видео канала









![Running Snippet Box in Docker [Web Based Code/Link/Notes Snippets Organizer]](https://i.ytimg.com/vi/xNpcHoyRfA0/default.jpg)










