Running HostMon in Docker
i12bretro
#HostMon #ApplicationDashboard #HostMonitor
Full steps can be found at https://i12bretro.github.io/tutorials/0706.html
What is HostMon?
HostMon is a simple web-based host monitor and application dashboard. It can be used to monitor the real-time status of hosts and services running in your homelab environment. In addition to monitoring, HostMon has built-in Wake-On-LAN (WOL) capability, SSH client, real-time ping output and the ability to link to your existing Apache Guacamole installation to remotely control hosts from the within browser. The HostMon application is written in javascript and uses a SQLite database backend. - https://github.com/i12bretro/HostMon
Installing Docker
01. Log into the Linux based device 02. Run the following commands in the terminal # install prerequisites sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y # add docker gpg key curl -fsSL https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add - # add docker software repository sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable" # install docker sudo apt install docker-ce docker-compose containerd.io -y # enable and start docker service sudo systemctl enable docker && sudo systemctl start docker # add the current user to the docker group sudo usermod -aG docker $USER # reauthenticate for the new group membership to take effect su - $USER
Running HostMon
01. Now that Docker is installed, run the following commands to setup the HostMon Docker container and run it # create working directories mkdir ~/docker/hostmon -p # set owner of working directories sudo chown "$USER":"$USER" ~/docker -R # create the hostmon docker container docker create -ti --name hostmon i12bretro/hostmon # export the hostmon database docker cp hostmon:/app/d ... https://www.youtube.com/watch?v=DvPxP8y65Qs
17553969 Bytes