https://github.com/ilpianista/orbit-notifier
Sends a desktop notification every time orbit (fleetdm) performs a distributed query
https://github.com/ilpianista/orbit-notifier
fleet
Last synced: about 2 months ago
JSON representation
Sends a desktop notification every time orbit (fleetdm) performs a distributed query
- Host: GitHub
- URL: https://github.com/ilpianista/orbit-notifier
- Owner: ilpianista
- License: mit
- Created: 2024-08-30T09:23:42.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-25T13:01:52.000Z (5 months ago)
- Last Synced: 2025-03-01T16:46:08.474Z (about 2 months ago)
- Topics: fleet
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# orbit-notifier
Sends a desktop notification every time orbit [fleetdm](https://fleetdm.com/) performs a distributed query on your host.
## Requirements
1. `notify-send` (on Ubuntu, this is `libnotify-bin`)
## Orbit setup
This script inspect orbit log file which isn't write by default. Thus we need to enable it this way:
```sh
sudo mkdir -p /etc/systemd/system/orbit.service.d
sudo bash -c 'cat </etc/systemd/system/orbit.service.d/override.conf
[Service]
Environment=ORBIT_DEBUG=true
Environment=ORBIT_LOG_FILE=/var/log/orbit/orbit.log
EOF'
sudo systemctl daemon-reload
sudo systemctl restart orbit
```## Install
1. Copy `orbit-notifier.sh` to `/usr/local/bin/orbit-notifier`.
1. Copy `orbit-notifier.service` to `/etc/systemd/user/orbit-notifier.service`.
1. Run `systemctl --user enable --now orbit-notifier`.## Good to know
Due to debug output, the `/var/log/orbit/orbit.log` file can grows to several megabytes after few months. Consider to run `truncate -s 50M /var/log/orbit/orbit.log` from time to time.
## License
MIT