Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.

ilpianista/orbit-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

orbit-notifier

Sends a desktop notification every time orbit fleetdm 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:

sudo mkdir -p /etc/systemd/system/orbit.service.d
sudo bash -c 'cat <<EOF >/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

sudo make all

or

  1. Copy orbit-notifier.sh to /usr/local/bin/orbit-notifier.
  2. Copy orbit-notifier.service to /etc/systemd/user/orbit-notifier.service.
  3. 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

About

Sends a desktop notification every time orbit (fleetdm) performs a distributed query

Topics

Resources

License

Stars

Watchers

Forks

Contributors