Lets Install Healthchecks - Cron Job Monitoring Service - On Linux @i12bretro
Lets Install Healthchecks - Cron Job Monitoring Service - On Linux  @i12bretro
Uploaded August 2024 | Updated September 2026, 2 weeks ago
#Healthchecks #Cron #Linux

Full steps can be found at 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. - 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 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: discord.com/invite/EzenvmSHW8
★ Reddit: reddit.com/r/i12bretro
★ Twitter: twitter.com/i12bretro
Lets Install Healthchecks - Cron Job Monitoring Service - On LinuxInstall Lychee - Photo Management System - On WindowsInstall Lychee - Photo Management System - On LinuxRunning AirSonic in DockerInstall Homebrew Package Manager on LinuxRun Mattermost - Secure Collaboration Platform - in DockerInstall AirSonic on Debian LinuxRunning a Netgear ReadyNAS OS VM in VirtualBoxRunning a Windows Server 2025 VM in VirtualBoxInstall Kanboard - Visual Todo and Tasks Management - on LinuxRun Odoo - Open Source Business Application Suite - in DockerRun Seafile - Cloud Storage System - in Docker
i12bretro |

Let's Install Healthchecks - Cron Job Monitoring Service - On Linux

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER