den1s / quagga_zabbix_bgp_mon

Monitor bgp quagga/frr session for zabbix
1 stars 4 forks source link

Exiting: failed to connect to any daemons. #4

Open C20NE opened 4 years ago

C20NE commented 4 years ago

Hello. I'm getting this error:

root@zabbix:/# zabbix_get -s IP -k bgp.peers.discovery Exiting: failed to connect to any daemons. { "data": [] }

Already added zabbix to vtysh: sudo usermod -a -G quagga zabbix

If I run from the local quagga server it works: root@bgp:/usr/local/bin# /usr/bin/env python bgpmon.py discovery { "data": [ { "{#DESCRIPTION}": "PEERING-1", "{#MAX-PREFIX}": -1, "{#PEER_IP}": "IP" },

den1s commented 4 years ago

Hello!

Can you login to zabbix user on router server and execute vtysh -c "sh run"?

su zabbix
vtysh -c "sh run"
C20NE commented 4 years ago

Hello, problem solved.

Script was having problems to vtysh.

Does it supports IPv6 peers? Only IPv4 peers are showing up.

den1s commented 4 years ago

Unfortunately there is no support for ipv6 neighbors...