[SOLVED] hostwatch at 100% CPU

Started by tessus, January 17, 2026, 03:54:15 PM

Previous topic - Next topic
Quote from: myg63 on Today at 12:30:04 PMwhen I switch into the shell and enter "hostwatch --version" it shows 1.0.2 even 1.0.9 packet is installed.

Yep, the manifest was not updated: see https://github.com/opnsense/hostwatch/blob/1.0.9/Cargo.toml

I believe the release workflow is not yet stabilized. I will open an issue to make a few suggestions.


I wasn't sure if the update clears the database so here is an attempt to save someone some time:

Web UI: System->Settings->Administration:
Check:
Enable Secure Shell
Permit root user login
Permit password login
Apply

ssh root@<yourgateway>

root@OPNsense:/var/db/hostwatch # ls -lh
total 207598624
-rw-r--r--  1 hostd hostd  4.0M Jan 30 17:30 hosts.db
-rw-r--r--  1 hostd hostd  393M Jan 30 18:05 hosts.db-shm
-rw-r--r--  1 hostd hostd  198G Jan 30 18:05 hosts.db-wal

service hostwatch stop
rm -rf /var/db/hostwatch/*

Update to OPNsense 26.1_4:
exit
12) Update from console

Web UI: System->Settings->Administration:
Uncheck:
Enable Secure Shell
Permit root user login
Permit password login
Apply

The .11 in 26.1_4 enforces the proper cleanup now. Just make sure to restart after update.


Cheers,
Franco