Hi Alex,

The Looking Glass feature depends on ZeroMQ so you will need to compile
pmacct with --enable-zmq. I will produce asap a small patch to output an
error if pmacct is not compiled against ZeroMQ and bgp_daemon_lg is set
to true: somehow this dependencey is mentioned in both CONFIG-KEYS and
QUICKSTART, nevertheless the code should throw an error.

Paolo

On Thu, Oct 24, 2019 at 03:47:55PM +0300, Alex Ivanov wrote:
> Hi all,
> i trying to set up looking glass feature, but no success.
> pmbgpd starts, but bgp_daemon_lg_* options dont' work, socket with
> specified address/port not shown.
> Please help, what i doing wrong.
> ]# /opt/sbin/pmbgpd -f /opt/etc/pmbgpd.conf -d -g
> DEBUG: [/opt/etc/pmbgpd.conf] plugin name/type: 'default'/'core'.
> DEBUG: [/opt/etc/pmbgpd.conf] daemonize:false
> DEBUG: [/opt/etc/pmbgpd.conf] debug:true
> DEBUG: [/opt/etc/pmbgpd.conf] bgp_daemon_lg:true
> DEBUG: [/opt/etc/pmbgpd.conf] bgp_daemon_lg_ip:192.168.31.10
> DEBUG: [/opt/etc/pmbgpd.conf] bgp_daemon_lg_port:17900
> DEBUG: [/opt/etc/pmbgpd.conf] bgp_daemon_lg_user:pmacct
> DEBUG: [/opt/etc/pmbgpd.conf] bgp_daemon_lg_passwd:arealsmartpwd
> DEBUG: [/opt/etc/pmbgpd.conf] bgp_daemon_as:57629
> DEBUG: [/opt/etc/pmbgpd.conf] bgp_daemon_ip:127.0.0.250
> DEBUG: [/opt/etc/pmbgpd.conf] bgp_daemon_port:1791
> DEBUG: [/opt/etc/pmbgpd.conf] debug:true
> DEBUG: [/opt/etc/pmbgpd.conf] bgp_daemon_lg:true
> INFO ( default/core ): pmacct BGP Collector Daemon, pmbgpd 1.7.4-git
> (20190618-01)
> INFO ( default/core ):  '--prefix=/opt' '--enable-mysql' '--enable-jansson'
> '--enable-geoipv2' '--enable-l2' '--enable-64bit' '--enable-traffic-bins'
> '--enable-bgp-bins' '--enable-bmp-bins' '--enable-st-bins'
> INFO ( default/core ): Reading configuration file '/opt/etc/pmbgpd.conf'.
> INFO ( default/core ): maximum BGP peers allowed: 4
> INFO ( default/core ): waiting for BGP data on 127.0.0.250:1791
> INFO ( default/core ): [127.0.0.30] BGP peers usage: 1/4
> INFO ( default/core ): [192.168.31.10] Capability: MultiProtocol [1] AFI
> [1] SAFI [1]
> INFO ( default/core ): [192.168.31.10] Capability: 4-bytes AS [41] ASN
> [57629]
> INFO ( default/core ): [192.168.31.10] BGP_OPEN: Local AS: 57629 Remote AS:
> 57629 HoldTime: 240
> DEBUG ( default/core ): [192.168.31.10] BGP_KEEPALIVE received
> DEBUG ( default/core ): [192.168.31.10] BGP_KEEPALIVE sent
> 
> # ss -tnlp | grep 1791
> LISTEN     0      1      127.0.0.250:1791                     *:*
>         users:(("pmbgpd",pid=11974,fd=3))
> 
> # ss -tnlp | grep 17900
> #
> 
> Full config:
> # cat /opt/etc/pmbgpd.conf
> daemonize: false
> !pidfile: /var/run/pmbgpd.pid
> !promisc: false
> debug: true
> 
> bgp_daemon_lg: true
> bgp_daemon_lg_ip: 192.168.31.10
> bgp_daemon_lg_port: 17900
> bgp_daemon_lg_user: pmacct
> bgp_daemon_lg_passwd: arealsmartpwd
> 
> bgp_daemon_as: 57629
> bgp_daemon_ip: 127.0.0.250
> bgp_daemon_port: 1791

> _______________________________________________
> pmacct-discussion mailing list
> http://www.pmacct.net/#mailinglists


_______________________________________________
pmacct-discussion mailing list
http://www.pmacct.net/#mailinglists

Reply via email to