I have an instance of Telegraf that is presenting data to Chronograf. However, I also need to be able to access the raw stats and alarms in a Nagios instance. I’m guessing there’s no way to do this directly? If not, I will settle for some kind of raw JSON output that I can plumb into Nagios manually.
I can get Telegraf to output stats to a file in JSON format easily by using the File output plugin. However, I was hoping to do this all over HTTP to avoid having to scp/ssh files. I thought the HTTP output plugin would be what I wanted but when I add it to my configuration file with default settings, I just see this error in the log file:
Error writing to output [http]: Post http://127.0.0.1:8080/metric: dial tcp 127.0.0.1:80: connect: connection refused
I get the feeling the HTTP output plugin doesn’t do what I thought it does. I assumed the plugin would expose data over HTTP but it looks like it instead is trying to write data to some separate web server via HTTP?
Any thoughts on the best way to do this would be appreciated.