Skip to content

Instantly share code, notes, and snippets.

@lleyton
Last active July 18, 2021 02:37
Show Gist options
  • Save lleyton/c3915d7506f79a3133f8301004a5016f to your computer and use it in GitHub Desktop.
Save lleyton/c3915d7506f79a3133f8301004a5016f to your computer and use it in GitHub Desktop.
innsight
logs = true
metrics = true
files = [
"/var/log/syslog"
]
token = ""
[Unit]
Description=Innsight Agent
After=network-online.target
[Service]
User=root
Group=root
ExecStart=/usr/local/bin/innsight-agent
Restart=on-failure
RestartSec=60s
[Install]
WantedBy=network-online.target
wget -O /usr/local/bin/innsight-agent https://cdn.octii.chat/innsight/innsight-linux
chmod +x /usr/local/bin/innsight-agent
mkdir /etc/innsight-agent
wget -O /etc/innsight-agent/config.hcl https://gist.githubusercontent.com/lleyton/c3915d7506f79a3133f8301004a5016f/raw/caf278ca4793a75e59dfee7cbc60429d60d7bca3/config.hcl
wget -O /etc/systemd/system/innsight-agent.service https://gist.githubusercontent.com/lleyton/c3915d7506f79a3133f8301004a5016f/raw/35343c6b17fafc06ea990fe7e9c7b93b9c5cf976/innsight-agent.service
systemctl daemon-reload
echo "Innsight has been installed!"
echo "Please check the /etc/innsight-agent/config.hcl file, and enable/start the innsight-agent systemd service."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment