Installing the Domotz Collector on a Linux environment offers enhanced flexibility, performance, and seamless integration within diverse network setups. In this article, we will guide you step-by-step through the installation and configuration of the Domotz Collector on Linux, ensuring a smooth deployment process that enables you to efficiently monitor and manage your network infrastructure.
1. Ensure Internet Connectivity
Verify that your machine can access the required internet resources as stated in the following link (only outgoing firewall rules from your host): https://help.domotz.com/tips-tricks/unblock-outgoing-connections-on-firewall/
2. Enable Snap Resource Access
Ensure the machine can download apt and snap-related resources. This is required both for the initial installation and for keeping Domotz updated over time.
3. Install snapd
Here are the steps to help you complete this task easily:
sudo apt update
sudo apt install net-tools
sudo apt install snapd
Public resource where I took the above commands: https://snapcraft.io/docs/installing-snap-on-ubuntu
If you want to check if snapd command works fine, execute the following:
sudo snap install hello-world
hello-world
4. Install Domotz Collector and Configure Firewall
Here are the steps to help you complete this task easily:
sudo snap install domotzpro-agent-publicstore
sudo snap connect domotzpro-agent-publicstore:firewall-control
sudo snap connect domotzpro-agent-publicstore:network-observe
sudo snap connect domotzpro-agent-publicstore:raw-usb
sudo snap connect domotzpro-agent-publicstore:shutdown
sudo snap connect domotzpro-agent-publicstore:system-observe
sudo sh -c 'echo tun >> /etc/modules'
sudo modprobe tun
sudo ufw allow 3000
Public resource where I took the above commands: https://snapcraft.io/domotzpro-agent-publicstore
You can make sure Domotz collector is running looking at port 3000 (LISTEN):
netstat -nltpa|grep 3000
Then to activate the Collector use the following link from the browser (use http and not https):
http://<linuxmachine IP>:3000