mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
- Fix CRLF line endings (SC1017) in 10 shell scripts - Add shebangs (SC2148) to 5 scripts missing them - Fix unquoted variables (SC2086) in kali-updates.sh - Add shellcheck disable directive for intentional eval usage - Fix missing space after ! in observium/custom_install.sh - Add security scan reports to .gitignore-safe location
telegraf-setup-scripts
Overview
Install and configure Telegraf metrics agent for system monitoring.
Files
| Script | Description |
|---|---|
install-client.sh |
Install Telegraf on Linux client |
update-telegraf-w-keys.sh |
Update with SSH key support |
Installation
Install Client
curl -s https://raw.githubusercontent.com/wickedyoda/public-setupfiles/main/telegraf-setup-scripts/install-client.sh | sudo bash
Or download:
curl -s https://raw.githubusercontent.com/wickedyoda/public-setupfiles/main/telegraf-setup-scripts/install-client.sh -o install-telegraf.sh
chmod +x install-telegraf.sh
sudo ./install-telegraf.sh
What It Does
The script installs:
- Telegraf service
- Default configuration (often with InfluxDB input/output)
- Optional: Secure secret storage
Configuration
Telegraf configuration is typically at:
/etc/telegraf/telegraf.conf(Linux)- Custom configs via flags
Edit to add your InfluxDB or Prometheus endpoint.
Uninstallation
# Remove package
sudo apt remove telegraf
sudo apt autoremove
# Remove config
sudo rm -rf /etc/telegraf
Related
- Monitoring Wiki
observium/— Alternative monitoring agent