Telegraf failed to start?

I running a fresh install of Ubuntu and have installed influxDb and telegraf using the online tutorials.

For some reason I cannot get telegraf to start?

ubuntu@ubuntu-virtual-machine:~$ sudo systemctl start telegraf
ubuntu@ubuntu-virtual-machine:~$ sudo systemctl status telegraf
● telegraf.service - The plugin-driven server agent for reporting metrics into InfluxDB
Loaded: loaded (/lib/systemd/system/telegraf.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Mon 2018-03-19 19:12:02 GMT; 8s ago
Docs: https://github.com/influxdata/telegraf
Process: 4272 ExecStart=/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf
Main PID: 4272 (code=exited, status=1/FAILURE)

Mar 19 19:12:02 ubuntu-virtual-machine systemd[1]: telegraf.service: Unit entered failed state.
Mar 19 19:12:02 ubuntu-virtual-machine systemd[1]: telegraf.service: Failed with result ‘exit-code’.
Mar 19 19:12:02 ubuntu-virtual-machine systemd[1]: telegraf.service: Service hold-off time over, scheduling restart.
Mar 19 19:12:02 ubuntu-virtual-machine systemd[1]: Stopped The plugin-driven server agent for reporting metrics into Inf
Mar 19 19:12:02 ubuntu-virtual-machine systemd[1]: telegraf.service: Start request repeated too quickly.
Mar 19 19:12:02 ubuntu-virtual-machine systemd[1]: Failed to start The plugin-driven server agent for reporting metrics

Is there anyway of finding out why? Or reinstalling telegraf?

Have you looked at the logs for telegraf? It’s often an issue in the telegraf.conf file, and the logs may have more than just using systemctl. Try journalctl -fu telegraf to follow the logs on startup.

1 Like

I ended up giving up using Ubuntu on a VM and installed Ubuntu directly onto the machine and the install was perfectly smooth. I think it has something to do with ESXi permission / configuration!