113 Commits

Author SHA1 Message Date
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
Cody Lee
c503f04ae7 Fixes influxdb init for docker compose
Fixes #623 #558

Thanks to @bcjmk https://github.com/unpoller/unpoller/issues/623#issuecomment-1977691177
2024-03-04 18:18:07 -06:00
David Newhall
46b2871cf0 Update docker-compose.yml 2024-01-01 12:12:11 -08:00
Cody Lee
68e9ec37c6 Update docker-compose.yml
Removes dangling chronograph
2024-01-01 14:05:49 -06:00
Cody Lee
bcfab844ae Update docker-compose.yml
Fix from #633
2023-11-15 18:31:35 -06:00
Doug Rabson
310a926aad Fix the freebsd release archive
The service script was misnamed and the file mode was wrong. Fixes #636.
2023-11-06 11:19:44 +00:00
David Newhall
1d48e1a667 Update docker-compose.yml 2023-09-14 15:40:01 -07:00
David Newhall
a18c0479bc Update docker-compose.yml 2023-09-14 15:39:18 -07:00
Cody Lee
3bd43bfc7a fixes freebsd package 2022-12-22 16:09:55 -06:00
Cody Lee
899664c4b2 fix systemd default config file location 2022-12-22 14:53:42 -06:00
Cody Lee
9ffa6e3af9 The elves did a little winter cleaning! They are making room for all the features and bug fixes coming soon, I can almost hear the jolly old ho ho ho! 2022-12-17 08:45:25 -06:00
Cody Lee
fded91ce40 fixed start loop 2022-12-11 13:00:40 -06:00
Cody Lee
1b0d74459b fix compose files
also fix location of service file for deb
2022-12-03 16:49:01 -06:00
crustulumtheoneandonly
8b8f2ec3b7 Update unpoller image source from dockerhub to gh 2022-11-23 10:09:21 +01:00
Cody Lee
a6673b4d42 fix missing docs, add missing license
fix broken pre/post scripts for packages
2022-11-13 14:39:33 -06:00
David Newhall II
db1950f681 Add packagecloud integration, remove JFrog 2021-04-13 01:15:51 -07:00
David Newhall II
d897916345 Update application builder 2021-03-15 00:41:09 -07:00
David Newhall
edb4857acc Merge branch 'master' into dn2_events 2021-03-14 23:34:21 -07:00
John Warne
6b750f7016 Specify InfluxDB version 1.8
InfluxDB 1.8 is the latest 1.x version to support the environment variables specified in the `docker-compose.yml`. If set to `latest` the newer 2.x version of InfluxDB is pulled and the user/db is not initialized.
2021-03-01 09:56:00 -07:00
David Newhall
dfbfc81f95 Merge branch 'master' into dn2_events 2021-02-02 00:51:25 -08:00
Justin Partain
07757b4268 Fixed Numbering Issue 2020-10-01 23:44:24 -05:00
Justin Partain
118605b438 Final Updates 2020-10-01 23:39:17 -05:00
Justin Partain
cec13cefd6 Variable Updates and Instructional Changes
Variables:
- Removed the `...Rendering_callback_url` references
- Removed the `GRAFANA_NETWORK` variables, as the network name can't be a variable.
Instructions:
- Fixed a few errors
- Added the section for running `docker-compose up -d` to start the containers, and then included creating the influx database instructions utilizing the GUI.
2020-08-17 04:58:35 -05:00
Justin Partain
17f9be2cf6 First Round Updates
Here are some of the higher-level, more basic updates that you guys mentioned so far:
- Added a small part about the `.env` file and what its for
- Changed the various references to directories from `grafana` to `unifi-poller` as the base
- Changed the user name to create in the GUI from `grafana` to `unifi-poller`. 
  - Thought this might be more streamlined(?)
  - Might want to look into changing that on the docker instructions, too, if we prefer this
  - You have to keep the `sudo id` bit later, as we can't tell the GUI to use a specific user ID.

Let me know what you think about these minor updates, here.
2020-08-13 20:40:44 -05:00
Justin Partain
cc7d85a9c9 Completed README
- Finished writing `README.md`
2020-07-31 14:31:33 -05:00
Justin Partain
4b432b4552 Fixed Variables and Network Name
- Fixed the variable names for the rendering callback url and rendering server url
2020-07-31 01:16:53 -05:00
Justin Partain
6e6596985e Updated Spacing 2020-07-31 00:53:47 -05:00
Justin Partain
ed23c39500 Major Initial Push
This is the first push with most of the edits/variables in place. Most of whats left is filling out the `README.md` file for the variables and what they mean and/or need.

- Moved most of the editable/user configurable options to variables inside of the `docker-compose.example.env` file
- Wrote the explainer for the directory creation and the user creation that is necessary
2020-07-31 00:53:35 -05:00
Justin Partain
8d99963fb8 Update for 07-30-2020 15-30-44 2020-07-30 15:30:44 -05:00
davidnewhall2
2a63fa0939 make web server work in docker 2020-06-28 05:50:44 -07:00
davidnewhall2
98019d0801 fix homebrew and arm docker builds 2020-06-13 21:33:01 -07:00
davidnewhall2
b7c83eebbb Add TZ env usage to set local time zone. 2020-06-13 18:50:32 -07:00
David Newhall II
b46b31827e Merge pull request #217 from davidyilee/update-docker-compose
Update docker compose and example env file for DPI and IDS polling
2020-04-28 00:15:08 -07:00
David Lee
cf249953e4 remove IDS env var and add back newline
addressing PR comments
2020-04-27 22:10:46 -07:00
David Lee
73fec17bdb Update docker compose and example env file for DPI and IDS polling
Add two example env variables for folks who want want to add DPI and IDS polling options in their docker stack.
2020-04-26 17:05:17 -07:00
L2v2P
d40d218ef8 Update docker-compose.yml
Remove IP address from Chronograf port to make Chronograf accessible from outside of Docker container.
2020-04-23 14:05:54 +02:00
Matthww
46829b8113 Fix Unifi-poller not able to connect
Seems like this commit: ff825c5f32 (diff-e6d152191eedc58f07f2559d4e8736c8) changed the environment to use the UNIFI_USER as a password instead of UNIFI_PASS
2020-02-19 11:42:37 +01:00
Jon Bloom
eeeceafe71 Use latest for docker image tag 2020-02-11 00:44:15 -05:00
jonbloom
8d5ad1c74a Fixes #191 - update env vars, *actually* enable auth 2020-02-10 09:08:52 -05:00
David Newhall II
35d5b785fa Update push 2020-02-06 16:00:31 -08:00
davidnewhall2
ff825c5f32 update docker compose for v2 2020-02-03 00:36:16 -08:00
davidnewhall2
fcb3459593 add major version tag 2020-02-03 00:24:52 -08:00
davidnewhall2
bcea89c2a5 no docker volume uhg 2020-02-02 21:07:36 -08:00
davidnewhall2
30742fbe54 Rename and fixes 2020-02-01 04:02:04 -08:00
davidnewhall2
07cd6d3e50 fixes 2020-02-01 03:35:00 -08:00
davidnewhall2
30f322e845 fix comments 2020-02-01 03:24:52 -08:00
davidnewhall2
8262e792d4 make rc.d file dynamic 2020-02-01 03:22:22 -08:00
davidnewhall2
851009e1ef fix homebrew 2020-02-01 02:30:11 -08:00
davidnewhall2
876d97bfe5 fix paths 2020-02-01 00:45:10 -08:00
davidnewhall2
a9c8d3f3d5 fixes 2020-02-01 00:34:43 -08:00