mirror of
https://github.com/jambonz/jambonz-infrastructure.git
synced 2026-10-29 12:24:11 +00:00
15 lines
442 B
Bash
15 lines
442 B
Bash
#!/bin/bash
|
|
|
|
if [ "$1" == "yes" ]; then
|
|
|
|
echo installing telegraf..
|
|
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -
|
|
echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
|
|
sudo apt-get update
|
|
sudo apt-get install -y telegraf
|
|
|
|
sudo cp /tmp/telegraf.conf /etc/telegraf/telegraf.conf
|
|
|
|
sudo systemctl enable telegraf
|
|
sudo systemctl start telegraf
|
|
fi |