100 Commits

Author SHA1 Message Date
Cody Lee
07781214c3 Add config option to suppress unknown device type messages
Adds log_unknown_types config option (default: false) to control logging
of unknown UniFi device types. When disabled (default), unknown devices
are silently ignored to reduce log volume. When enabled, they are logged
as DEBUG messages instead of ERROR. Addresses issue #912.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-25 11:24:33 -06:00
brngates98
28eae6ab22 Add remote API support for UniFi Site Manager
- Add remote API mode with automatic controller discovery
- Discover consoles via /v1/hosts endpoint
- Auto-discover sites for each console via integration API
- Use console name from hosts response as site name override for Cloud Gateways
- Support both config-level and per-controller remote mode
- Add example configs for YAML, JSON, and TOML formats
- Remote API uses api.ui.com with X-API-Key authentication
- Automatically discovers all consoles when remote=true and remote_api_key is set

This enables monitoring multiple UniFi Cloud Gateways through a single
API key without requiring direct network access to each controller.
2026-01-24 17:32:36 -05:00
aharper343
9b62519bfe Rebasing 2025-12-24 00:25:09 -05:00
Sven Grossmann
a3dc4cd0b2 feat: add save_syslog option for v2 system-log API
Add new save_syslog config option to collect events from the v2 UniFi
system-log API (/v2/api/site/{site}/system-log/all).

Changes:
- Add SaveSyslog field to Controller struct
- Add collectSyslog() function using v2 API
- Keep collectEvents() using v1 API for backwards compatibility
- Add RedactIPPII() helper for PII redaction
- Update lokiunifi to log raw JSON (parseable with Loki | json)
- Reduce indexed labels to low-cardinality fields only
- Add SystemLogEntry handler in lokiunifi report

Config: save_syslog (v2 API) vs save_events (v1 API)
Env: UP_UNIFI_DEFAULT_SAVE_SYSLOG=true
2025-12-22 17:23:53 +01:00
Cody Lee
b960695f3b Add Docker health check support
Implements #406 by adding a --health CLI flag and HEALTHCHECK instruction
to the Dockerfile. This allows Docker and container orchestration platforms
to monitor container health automatically.

Changes:
- Added --health flag that validates configuration and plugin connectivity
- Implemented HealthCheck() method in pkg/poller/commands.go
- Updated Dockerfile with HEALTHCHECK instruction (30s interval, 10s timeout)
- Updated MANUAL.md with --health flag documentation
- Added health check documentation to Docker README
- Added comments to docker-compose examples about built-in health check

The health check:
- Validates configuration file is found and parseable
- Ensures at least one input and one enabled output are configured
- Performs basic validation on enabled outputs
- Returns exit code 0 (healthy) or 1 (unhealthy)
- Runs silently for Docker compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-08 13:09:10 -06:00
Sofiane A
5a89a4634a Add default_site_name_override to support customizable default site names 2025-04-29 16:12:32 +02:00
Cody Lee
e946f246eb update example conf file 2025-01-10 15:25:16 -06:00
deggja
9dec5cdaf0 changed line 39 to correct path for example 2023-05-30 13:20:09 +02:00
Cody Lee
c002283387 fixes the webserver default file path issues 2023-04-13 09:56:24 -05:00
Cody Lee
fded91ce40 fixed start loop 2022-12-11 13:00:40 -06:00
Cody Lee
8a3bb1a562 add documentation for timeout 2022-12-08 21:14:43 -06:00
Cody Lee
bd51cf59f3 move to a common pattern on output plugins to catch common issues 2022-12-05 22:00:48 -06:00
Cody Lee
1b0d74459b fix compose files
also fix location of service file for deb
2022-12-03 16:49:01 -06:00
Cody Lee
eaecfcdbfd add helpful comment back link for advanced options 2022-01-18 10:00:22 -06:00
Cody Lee
273ff7c90f drop advanced defaults for datadog plugin, leave these documented upstream in the datadogunifi README 2022-01-18 09:55:32 -06:00
Cody Lee
89587ae8d2 update default comments 2022-01-18 09:53:08 -06:00
Cody Lee
7d27b8bd52 address pr comment
switch to toml, not yaml in a toml 🤦

default disable

update examples
2022-01-18 09:50:23 -06:00
Cody Lee
6c6ae18b7c mirror default config settings 2022-01-17 15:15:32 -06:00
KzBoy
bb51913c06 Removed some comment references to Unifi Poller. 2021-11-26 15:56:34 -05:00
David Newhall II
81ab41571e rename org 2021-06-23 03:27:48 -07:00
paulfantom
053587817e examples: use Secret instead of ConfigMap 2021-06-10 19:46:54 +02:00
David Newhall II
33dfe3e204 fix homebrew 2021-04-14 01:31:14 -07:00
Michaelpietzsch
c6fc4bf698 Adding Info to comments 2021-04-11 14:26:41 +02:00
Michaelpietzsch
717db3d84d Adding Proper Influx Version 2021-04-11 14:25:18 +02:00
Michaelpietzsch
742dfdcb3c Adding K8S Content 2021-04-09 23:28:55 +02:00
David Newhall II
d897916345 Update application builder 2021-03-15 00:41:09 -07:00
David Newhall II
b0044155f5 add base for new features 2021-03-15 00:01:43 -07:00
davidnewhall2
6197177a45 update config file options 2020-07-19 00:17:47 -07:00
davidnewhall2
7e37bb5d6e minor updates 2020-07-06 02:39:38 -07:00
davidnewhall2
8abf82114c update config 2020-07-05 03:06:50 -07:00
davidnewhall2
eacce79785 updates 2020-06-29 22:36:05 -07:00
davidnewhall2
101b066036 update examples 2020-06-25 22:39:42 -07:00
davidnewhall2
4a4160d10c Add events 2020-06-20 04:18:41 -07:00
davidnewhall2
b32a9edebf fix 2020-06-15 06:05:37 -07:00
davidnewhall2
9f58c65acc update docs and examples 2020-06-15 02:19:09 -07:00
davidnewhall2
22741ccab3 update docs 2020-02-04 20:04:17 -08:00
davidnewhall2
4aeb5f4fea Update man page 2020-02-03 00:16:23 -08:00
davidnewhall2
2e252b5069 Fix defaults 2020-02-03 00:10:00 -08:00
davidnewhall2
30742fbe54 Rename and fixes 2020-02-01 04:02:04 -08:00
davidnewhall2
876d97bfe5 fix paths 2020-02-01 00:45:10 -08:00
davidnewhall2
3b457a5f00 fixes 2020-02-01 00:43:19 -08:00
David Newhall II
0f4926f1a4 Merge branch 'master' into dn2_branch 2020-02-01 00:41:20 -08:00
davidnewhall2
5fe2c0879b add freebsd package building 2020-02-01 00:25:25 -08:00
David Newhall II
e088aba9c8 Update up.conf.example 2020-01-26 18:36:14 -08:00
davidnewhall2
bd0680b92a Add DPI collection 2019-12-27 23:59:16 -08:00
davidnewhall2
6facff1337 deps 2019-12-25 01:02:36 -08:00
davidnewhall2
84edadaa94 Make a new docker image 2019-12-24 23:43:49 -08:00
davidnewhall2
3f6a3e9721 ocd 2019-12-20 03:22:41 -08:00
davidnewhall2
ed3bed4c7b rename some things 2019-12-20 03:19:00 -08:00
davidnewhall2
de16ba2399 fixes 2019-12-20 02:44:53 -08:00