I have spent the last 4/5 days installing the TICK stack (also with Grafana sometimes) on many machines. I have followed a number of different walk-throughs and I am stuck. The Basic config I can get and I have even been able to install Telegraf on a Windows machine and have it sending some basic information over to my CentOS machine and it shows as a host in Chronograf.
The problem I have is when I try to add anything extra to my telegraf.conf file, I can’t start the service. I am trying to monitor my network with SNMP. I followed Unifi APs in Grafana using SNMP – The Cruft Of My Brain for Unifi into telegraf and downloaded the Grafana dashboard, but when I place the [[inputs.snmp]], I can add that line, but if I add any combination of any other lines, I get the following:
● telegraf.service - The plugin-driven server agent for reporting metrics into InfluxDB
Loaded: loaded (/usr/lib/systemd/system/telegraf.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2020-04-28 16:25:43 CDT; 1s ago
Docs: GitHub - influxdata/telegraf: The plugin-driven server agent for collecting & reporting metrics.
Process: 6029 ExecStart=/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d $TELEGRAF_OPTS (code=exited, status=1/FAILURE)
Main PID: 6029 (code=exited, status=1/FAILURE)
Apr 28 16:25:43 nms.lulue.int systemd[1]: telegraf.service: Service RestartSec=100ms expired, scheduling restart.
Apr 28 16:25:43 nms.lulue.int systemd[1]: telegraf.service: Scheduled restart job, restart counter is at 5.
Apr 28 16:25:43 nms.lulue.int systemd[1]: Stopped The plugin-driven server agent for reporting metrics into InfluxDB.
Apr 28 16:25:43 nms.lulue.int systemd[1]: telegraf.service: Start request repeated too quickly.
Apr 28 16:25:43 nms.lulue.int systemd[1]: telegraf.service: Failed with result ‘exit-code’.
Apr 28 16:25:43 nms.lulue.int systemd[1]: Failed to start The plugin-driven server agent for reporting metrics into InfluxDB.