Juniper / open-nti

Open Network Telemetry Collector build with open source tools
Apache License 2.0
233 stars 93 forks source link

Running input-oc image by itself #214

Open mohsin106 opened 6 years ago

mohsin106 commented 6 years ago

Is it possible to run the input-oc container by itself. When I try I get this error:

#docker run -it juniper/open-nti-input-oc sed: can't read /source/telegraf.tmpl: No such file or directory 2018/04/19 16:57:31 E! Error: no outputs found, did you provide a valid config file?

I'm still learning Docker so I'm not an expert by any means. I'm just trying to see if I can run your telegraf container by itself.

Everything works fine when I run 'make start' but I was wondering if I need to run the whole stack in order to capture telemetry data from my Juniper device. I have an instance of InfluxDB already running and just wanted to see if I can just run your telegraf container by itself and push the data to my InfluxDb.

Thanks for your help. Mohsin

3fr61n commented 6 years ago

It seems the input-oc container went down because there is no valid telegraf config, could you please check the file https://github.com/Juniper/open-nti/blob/master/plugins/input-oc/telegraf.tmpl and then check if it contains the routers ip addresses and the sensors properly configured.

Regards EFrain