Last active
July 18, 2021 02:37
-
-
Save lleyton/c3915d7506f79a3133f8301004a5016f to your computer and use it in GitHub Desktop.
innsight
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logs = true | |
metrics = true | |
files = [ | |
"/var/log/syslog" | |
] | |
token = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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