Monitor your Philips Hue network
Project description
Huemon
Zabbix monitoring with low-level discovery for Philips Hue networks.
Requirements
- Zabbix server 5.0+
- Zabbix agent 5.0+
- Python 3.8+ on Zabbix agent machine
Installation
pip3 install huemon
Configuration
- Copy
config.example.yml
fromsrc/huemon
to/path/to/config.yml
- Make necessary changes
- Provide the path through environment variable
HUEMON_CONFIG_PATH
Plugins
Create a command or discovery plugin by implementing HueCommand or Discovery respectively and copy the file to the configured path in plugins.commands.path
or plugins.discoveries.path
of the configuration file.
Zabbix agent configuration
# file:/path/to/zabbix/agent/conf.d/hue.conf
UserParameter=hue.discovery[*],HUEMON_CONFIG_PATH=/path/to/config.yml python3 -m huemon discover $1
UserParameter=hue.value[*],HUEMON_CONFIG_PATH=/path/to/config.yml python3 -m huemon $1 $2 $3
Or Docker
# file:/path/to/zabbix/agent/conf.d/hue.conf
UserParameter=hue.discovery[*],docker-compose run huemon discover $1
UserParameter=hue.value[*],docker-compose run huemon $1 $2 $3
Or agent mode
# file:/path/to/zabbix/agent/conf.d/hue.conf
UserParameter=hue.discovery[*],curl http://127.0.0.1:8000/discover?q=$1
UserParameter=hue.value[*],curl http://127.0.0.1:8000/$1?q=$2\&q=$3
Configure Systemd service
An installer that configures Huemon as a Systemd service is included in this repository. It uses /etc/huemon/config.yml
as the configuration path.
assets/service-installer.sh install
Usage
Shell
HUEMON_CONFIG_PATH=/path/to/config.yml python3 -m huemon discover lights
Or agent mode
HUEMON_CONFIG_PATH=/path/to/config.yml python3 -m huemon agent start
Docker
Provide a configuration path for the huemon-config
volume in docker-compose.yml
before running the commands below.
docker-compose run huemon discover lights
Or agent mode
docker-compose up -d
Screenshots
Dashboards
Discoveries
Template
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
Code of Conduct
Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
License
MPL-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file huemon-1.0.4.tar.gz
.
File metadata
- Download URL: huemon-1.0.4.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51fb32f3f70b296a5c777e76d8081cc80d52a90e6c57a144020170985066c44b |
|
MD5 | b36a27b35001e88ad63ab2345ba16221 |
|
BLAKE2b-256 | 3bb3e7a15cef2fa72ab6fe923db89799997a5c08ecb89626fc08775a4bb4a03e |
File details
Details for the file huemon-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: huemon-1.0.4-py3-none-any.whl
- Upload date:
- Size: 35.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b768662f211a95494eb9b2f6be8644aa2ed01d8c2e78ee2c1b713e5b5188cffc |
|
MD5 | 8b1bf2ca5bb378c47ce5542be68d75c8 |
|
BLAKE2b-256 | a28a1a3a1b1fa5a7b2c98aaaef7b7eb7cbe911f1444188325137a12150a86b08 |