06-03-2022 07:16 AM
Hi Guys,
I am doing the lab from Nick Russo of Cisco MDT IOS XE and the TIG Stack from Pluralsight
I am configuring the routers using the netconf_mdt.py
https://github.com/nickrusso42518/pluralsight/tree/master/enauto1/m6/scripts
I can get to the part in which I can enable MDT subscriptions in the router.
! telemetry ietf subscription 100 encoding encode-kvgpb filter xpath /process-cpu-ios-xe-oper:cpu-usage/cpu-utilization/five-seconds stream yang-push update-policy periodic 1000 receiver ip address 192.168.50.51 42518 protocol grpc-tcp telemetry ietf subscription 101 encoding encode-kvgpb filter xpath /memory-ios-xe-oper:memory-statistics/memory-statistic stream yang-push update-policy periodic 1000 receiver ip address 192.168.50.51 42518 protocol grpc-tcp telemetry ietf subscription 102 encoding encode-kvgpb filter xpath /cdp-ios-xe-oper:cdp-neighbor-details/cdp-neighbor-detail/device-name stream yang-push update-policy on-change receiver ip address 192.168.50.51 42518 protocol grpc-tcp netconf-yang end
but when it is time to install Nick's TIG stack I get this error.
telegraf_1 | 2022-06-03T13:38:49Z E! [agent] Error writing to outputs.influxdb: could not write any address telegraf_1 | 2022-06-03T13:38:59Z E! [outputs.influxdb] When writing to [http://localhost:8086]: failed doing req: Post "http://localhost:8086/write?db=telegraf": dial tcp 127.0.0.1:8086: connect: connection refused telegraf_1 | 2022-06-03T13:38:59Z E! [agent] Error writing to outputs.influxdb: could not write any address telegraf_1 | 2022-06-03T13:39:09Z E! [outputs.influxdb] When writing to [http://localhost:8086]: failed doing req: Post "http://localhost:8086/write?db=telegraf": dial tcp 127.0.0.1:8086: connect: connection refused telegraf_1 | 2022-06-03T13:39:09Z E! [agent] Error writing to outputs.influxdb: could not write any address telegraf_1 | 2022-06-03T13:39:19Z E! [outputs.influxdb] When writing to [http://localhost:8086]: failed doing req: Post "http://localhost:8086/write?db=telegraf": dial tcp 127.0.0.1:8086: connect: connection refused telegraf_1 | 2022-06-03T13:39:19Z E! [agent] Error writing to outputs.influxdb: could not write any address telegraf_1 | 2022-06-03T13:39:29Z E! [outputs.influxdb] When writing to [http://localhost:8086]: failed doing req: Post "http://localhost:8086/write?db=telegraf": dial tcp 127.0.0.1:8086: connect: connection refused telegraf_1 | 2022-06-03T13:39:29Z E! [agent] Error writing to outputs.influxdb: could not write any address telegraf_1 | 2022-06-03T13:39:39Z E! [outputs.influxdb] When writing to [http://localhost:8086]: failed doing req: Post "http://localhost:8086/write?db=telegraf": dial tcp 127.0.0.1:8086: connect: connection refused telegraf_1 | 2022-06-03T13:39:39Z E! [agent] Error writing to outputs.influxdb: could not write any address
This is what I am doing to set up the image,
I download the Nick Russo docker image and then issue a docker compose up.
https://github.com/nickrusso42518/tig-stack.git
#!/bin/bash # Clone the tig-stack forked repository and change into directory git clone https://github.com/nickrusso42518/tig-stack.git cd tig-stack/ # Start the TIG stack in the background docker-compose up --detach # Check to see that TCP ports 42518, 3000, 8083, and 8086 are open ss -tna
All the ports are fine:
juan@ubuntu:~/tig-stack$ sudo docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 15daa1c01aef tig-stack_telegraf "/entrypoint.sh /run…" 24 minutes ago Up 14 minutes 8092/udp, 8125/udp, 8094/tcp, 0.0.0.0:42518->42518/tcp, :::42518->42518/tcp tig-stack_telegraf_1 e7a5024ea220 matisq/grafana:latest "/run.sh /run.sh" 24 minutes ago Up 14 minutes 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp tig-stack_grafana_1 2ca52965da4f matisq/influxdb:latest "/entrypoint.sh /run…" 24 minutes ago Up 14 minutes 0.0.0.0:8083->8083/tcp, :::8083->8083/tcp, 0.0.0.0:8086->8086/tcp, :::8086->8086/tcp tig-stack_influxdb_1 094233395cea busybox "sh" 24 minutes ago Up 14 minutes tig-stack_influxdb-data_1 68c20ef94c5e busybox "sh" 24 minutes ago Up 14 minutes tig-stack_grafana-data_1
but there is the error of above,
The TCP packets from my router are going to the my Ubunti Box, and even if the ports are listening, the machine does not respond.
juan@ubuntu:~/tig-stack$ sudo netstat -tunap Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:8083 0.0.0.0:* LISTEN 88353/docker-proxy tcp 0 0 0.0.0.0:9269 0.0.0.0:* LISTEN 21742/docker-proxy tcp 0 0 0.0.0.0:42518 0.0.0.0:* LISTEN 88500/docker-proxy tcp 0 0 0.0.0.0:8086 0.0.0.0:* LISTEN 88330/docker-proxy tcp 0 0 0.0.0.0:3000 0.0.0.0:* LISTEN 88527/docker-proxy
can someone try to clone Nick's TIG image, and help me see why it is giving me those errors? and why telegraph is reseting the packeds it gets from the routers?
Thank you very much.
Juan
06-24-2022 11:48 AM
Hello @Juan Gerardo Hernandez,
I see Nick Russo forked that GitHub repo. Maybe you can raise an Issue with the originator:
https://github.com/matisku/tig-stack/issues