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
- Log into the Windows device
- Download the latest HostMon release Download
- Download NodeJS Download
- Install NodeJS, accepting all defaults
- Extract the downloaded HostMon files
- Rename the extracted folder HostMon
- Cut the HostMon folder to a location it can safely run from, C:\Program Files\HostMon in this example
- Hold the SHIFT key and right click in the white space > Open PowerShell windows here...
- Run the following commands in the PowerShell window
# install dependencies
npm install
# run npm audit
npm audit fix
# run hostmon
node .\server.js - Open a web browser and navigate to http://DNSorIP:3000
- Welcome to HostMon
Run HostMon as a Service (Optional, but recommended)
- Press CTRL + C to kill the running HostMon process
- Click on the Start Button > Type task > Launch Task Scheduler
- Right click the Task Scheduler Library folder in the left pane > Create Basic Task...
- Set the name to HostMon and optionally set a Description > Click Next
- For the Trigger, select When the computer starts > Click Next
- For the Action, select Start a program > Click Next
- Complete the form fields as follows:
Program/script: "%ProgramFiles%\nodejs\node.exe"
Add arguments: "%ProgramFiles%\HostMon\server.js"
Start in: %ProgramFiles%\HostMon - Click Next
- Check the Open the Properties dialog checkbox > Click Finish
- In the Properties dialog, click the Change User or Group... button
- Type System in the Object name field > Click OK
- Check the Run with highest privileges box
- Click OK to create the scheduled task
- Right click the HostMon task > Run
- Refresh the open web browser to verify HostMon is now running from the scheduled task