[ixpmanager] Birdseye Looking Glass error version.

Ikusan Charles Abimbola c.ikusan at ixp.net.ng
Fri May 1 12:47:49 IST 2020


Hello Barry,

These are the changes I made below.

####################################################################################################################

Edit the .env file on birdseye directory.

Lighttpd.conf

root at testbirdv1:/srv/birdseye-v1.2.2#

root at testbirdv1:/srv/birdseye-v1.2.2#vim .env

#

# Bird's Eye - see https://github.com/inex/birdseye

#

# Values that are commented show their default setting.

# To query Bird securely, we use a wrapper script

BIRDC="/usr/bin/sudo /srv/birdseye-v1.2.2/bin/birdc -2 -s 
/var/run/bird/bird.ctl"

# We use caching as a natural API -> birdc rate limiter

# Changing to 'array' will disable the cache but this is strongly 
discouraged

# [this is Memcache for 127.0.0.1:11211 by default]

CACHE_DRIVER=file

# A cache key is required only if relying on a default .env 
configuration.

# If you're relying on the automated configuration discovery detailed 
at:

# https://github.com/inex/birdseye#configuration

# then this is set automatically and appropriatly.

#Â BIRDSEYE_CACHE_KEY="SomeCacheKey"

# Set to true for testing / debugging.

# This will provide stack dumps and reveal internal logic / 
configuration.

# It also added "env" and "cache_disabled" to the api section of 
responses.

APP_DEBUG=true

# This micro server also includes a built in looking glass which can be 
enabled by setting this to true

# The loogking glass is really just to deomostrate the API and uses the 
same API calls internally as

# are publically available. If enabled, it's available under /lg

LOOKING_GLASS_ENABLED=true

# Page title for looking glass [note: {!VERSION!} will be replaced with 
the actual version]

LOOKING_GLASS_TITLE="Bird's Eye Looking Glass - API V{!VERSION!}"

# The LG displays the BGP protocol description. These can sometimes be 
internal

# machine generated / unwieldy strings. If you want to pluck out just a 
bit of

# this you can set a regex here and, when valid and matches against the 
description,

# it plucks the first subpattern match (i.e. (xxx) ) and sets that in

# the API response as description_short. The frontend LG will also 
prefer this if set.

#

#Â Note that the system adds anchors and Bird output matching so the 
evaluated regex is:

# '/^\s+Description:\s+' . env( 'PARSER_PROTOCOL_BGP_DESCRIPTION' ) . 
'$/'

#

# E.g. to pluck 'ppp-rb01' out of 'RR Client - ppp-rb01', you might use:

# PARSER_PROTOCOL_BGP_DESCRIPTION=".*\s+([a-zA-Z0-9\-_]+)"

#

#PARSER_PROTOCOL_BGP_DESCRIPTION=""

###################################################################################################################




###############################################################################################

Vim /etc/lighttpd/lighttpd.conf

# Sample Bird's Eye Lighttpd config - just added a small amount to

#Â the standard Lighttpd configuration.

server.modules = (

"mod_access",

"mod_alias",

"mod_compress",

"mod_redirect",

"mod_rewrite",

)

server.document-root ="/srv/birdseye-v1.2.2/public"

server.upload-dirs = ( "/var/cache/lighttpd/uploads" )

server.errorlog = "/var/log/lighttpd/error.log"

server.pid-file = "/var/run/lighttpd.pid"

server.username = "www-data"

server.groupname = "www-data"

server.port = 80

server.bind =      "server IP address"

index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )

url.access-deny = ( "~", ".inc" )

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

compress.cache-dir = "/var/cache/lighttpd/compress/"

compress.filetype = ( "application/javascript", "text/css", "text/html", 
"text/plain" )

# default listening port for IPv6 falls back to the IPv4 port

## Use ipv6 if available

#include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port

include_shell "/usr/share/lighttpd/create-mime.assign.pl"

include_shell "/usr/share/lighttpd/include-conf-enabled.pl"

url.redirect = ()

url.rewrite-once = (

"^/(css|img|js|fonts)/.*\.(jpg|jpeg|gif|png|swf|avi|mpg|mpeg|mp3|flv|ico|css|js|woff|ttf)$" 
=> "$0",

"^/(favicon\.ico|robots\.txt|sitemap\.xml)$" => "$0",

"^/test\.php$" => "$0",

"^/[^\?]*(\?.*)?$" => "index.php/$1"

)



------ Original Message ------
From: "Barry O'Donovan" <barry.odonovan at inex.ie>
To: "Ikusan Charles" <c.ikusan at ixp.net.ng>
Cc: ixpmanager at inex.ie; noc at ixp.net.ng
Sent: 30-Apr-20 8:57:56 AM
Subject: Re: [ixpmanager] Birdseye Looking Glass error version.

>That's great Charles.
>
>I didn't have a chance to follow up here but if there is a learning / solution that would help future people reading the mailing list, a followup from you here would be useful.
>
>   -barry
>
>Ikusan Charles wrote on 29/04/2020 22:01:
>>Hello Barry,
>>
>>We were able to get the Birdseye working thanks for your support.
>>
>>Regards,
>>
>>Charles.
>>
>>		*Ikusan Charles* <https://spikenow.com/r/a/?ref=spike-organic-signature&_ts=hjtg5>	hjtg5
>>
>>Warm Regards,
>>
>>Ikusan Charles A.
>>
>>Network Engineer / Monitoring | Internet eXchange Point of Nigeria IXPN
>>
>>Office: 8th Floor, NCR Building, 6 Broad Street, Marina, Lagos.
>>
>>Phone:+234 (0)700 CALL-IXPN, +234 (0)8035606131, +234 (0)8093878116
>>
>>www.ixp.net.ng   |noc at ixp.net.ng  |www.twitter.com/IXPN_NG  |www.facebook.com/IXPNigeria
>>
>>
>>
>>On April 24, 2020 at 21:10 GMT, Ikusan Charles Abimbola <c.ikusan at ixp.net.ng <mailto:c.ikusan at ixp.net.ng>> wrote:
>>
>>
>>     Hello Barry,
>>
>>     I made some adjustments as suggested, kindly see the output below.
>>
>>
>>
>>     Observation
>>     1.. The script provided with the IXP Manager will name the socket
>>     using the router handle used in IXP Manager, that is,
>>     /var/run/bird/rs1-ipv4.ctl.
>>     https://docs.ixpmanager.org/features/routers/#managing-routers
>>
>>     2. The fact that bird.ctl exist indicates that the default Bird
>>     instance still runs. We need to uninstall the default bird running.
>>     You need to ensure the removal of default bird 9 e.g
>>     /etc/bird/bird(6).conf
>>     systemctl stop bird.service
>>     systemctl stop bird6.service
>>     systemctl disable bird.service
>>     systemctl disable bird6.service
>>
>>
>>     3. So, you have configured Birdseye to look for
>>     /var/run/bird/rs1-lan1-ipv4.cvitl but that doesn't exist because
>>     your Bird
>>     is not running. Also ensure this matches the handle as explained above.
>>
>>
>>
>>     N.B:
>>
>>     I have an existing birdv1 and birdseye running without the use of
>>     Domain names and it works currently.
>>     Regards,
>>
>>     Charles.
>>
>>     ------ Original Message ------
>>     From: "Barry O'Donovan" <barry.odonovan at inex.ie>
>>     To: "Ikusan Charles Abimbola" <c.ikusan at ixp.net.ng>
>>     Cc: "INEX IXP Manager Users Mailing List" <ixpmanager at inex.ie>;
>>     "noc at ixp.net.ng" <noc at ixp.net.ng>
>>     Sent: 23-Apr-20 7:39:18 AM
>>     Subject: Re: [ixpmanager] Birdseye Looking Glass error version.
>>
>>>     Hi Charles,
>>>     from what you've provided below, this isn't really a Birdseye issue.
>>>     There is also many examples of similar issues in this mailing list
>>>     history - please Google: birdseye site:www.inex.ie
>>>     First, you have:
>>>     root at ixp-manager:/srv/ixpmanager# curl -v
>>>     http://196.216.148.190/api/status
>>>     Typically you would have two Bird instances per machine (ipv4 and
>>>     ipv6 per peering VLAN). For Birdseye to differentiate between
>>>     which one you want, it requires you to use domain names - this is
>>>     explained here:
>>>     https://github.com/inex/birdseye#configuration
>>>     i.e. using 196.216.148.190 above will not work.
>>>>     *root at birdtest:/etc/bird# ls -la /var/run/bird*
>>>>     */total 0
>>>>     drwxrwxr-x  2 bird bird  60 Apr 14 19:13 .
>>>>     drwxr-xr-x 28 root root 940 Apr 23 01:47 ..
>>>>     srw-rw----  1 bird bird   0 Apr 14 19:13 bird.ctl
>>>     This indicates an additional issue with your route server
>>>     configuration. The scripts we provide with IXP Manager will name
>>>     the socket using the router handle you used in IXP Manager. i.e.
>>>     this should be called:
>>>     /var/run/bird/rs1-ipv4.ctl
>>>     or similar. Again, it's the handle /you/ chose in IXP Manager -
>>>     first input field here:
>>>     https://docs.ixpmanager.org/features/routers/#managing-routers
>>>     The fact that bird.ctl exists indicates that the default Bird
>>>     instance is running - the one you get when you 'apt install bird'.
>>>     Depending on operating system, you need to ensure this doesn't run
>>>     by removing the default configuration file (e.g.
>>>     /etc/bird/bird[6].conf and stopping the service:
>>>     systemctl stop bird.service
>>>     systemctl stop bird6.service
>>>     systemctl disable bird.service
>>>     systemctl disable bird6.service
>>>     NB: this is a guess as we install from source currently:
>>>     https://docs.ixpmanager.org/features/rpki/#enabling-rpki
>>>     Because this default version is running, it may prevent your IXP
>>>     Manager versions from starting as there will already be a daemon
>>>     listening on port *:179.
>>>>     *root at birdtest:/srv/birdseye-1.2.0# cat /srv/birdseye-1.2.0/*env
>>>>     | egrep -v '(^#)|(^\s*$)'*
>>>>     *BIRDC="/usr/bin/sudo /srv/birdseye/bin/birdc -2 -s
>>>>     /var/run/bird/rs1-lan1-ipv4.ctl"*
>>>     So you have configured Birdseye to look for
>>>     /var/run/bird/rs1-lan1-ipv4.ctl but that doesn't exist because
>>>     your Bird is not running. Also ensure this matches the handle as
>>>     explained above.
>>>     - Barry
>>>>     *root at birdtest:/srv/birdseye-1.2.0# /usr/sbin/birdc -s
>>>>     /var/run/bird/bird.ctl show status*
>>>>     *BIRD 2.0.7 ready.*
>>>>     *BIRD 2.0.7*
>>>>     *Router ID is 198.51.100.2*
>>>>     *Current server time is 2020-04-23 03:50:20*
>>>>     *Last reboot on 2020-04-14 19:13:44*
>>>>     *Last reconfiguration on 2020-04-23 03:10:03*
>>>>     *Daemon is up and running*
>>>>     *
>>>>     *
>>>>     *
>>>>     *
>>>>     *root at birdtest:/srv/birdseye-1.2.0# netstat -lpn | grep lighttpd
>>>>     tcp        0      0 0.0.0.0:80              0.0.0.0:*  LISTEN         22977/lighttpd
>>>>     unix  2      [ ACC ]     STREAM     LISTENING     3755379
>>>>     22978/php-cgi        /var/run/lighttpd/php.socket-0*
>>>>     https://pastebin.ibn.ie/?4e784b3779dc96f3#7vTGoVDAeBJCnvLzQkfZoRNRoDkNuEBCkqUAL2D7eB4X
>>>>     ------ Original Message ------
>>>>     From: "Barry O'Donovan" <barry.odonovan at inex.ie>
>>>>     To: "INEX IXP Manager Users Mailing List" <ixpmanager at inex.ie>;
>>>>     "Ikusan Charles" <c.ikusan at ixp.net.ng>
>>>>     Sent: 15-Apr-20 12:09:18 AM
>>>>     Subject: Re: [ixpmanager] Birdseye Looking Glass error version.
>>>>>     Nick Hilliard (INEX) wrote on 14/04/2020 23:49:
>>>>>>     Ikusan Charles wrote on 14/04/2020 23:17:
>>>>>>>     I followed your advice by using different vm for bird2 and
>>>>>>>     ixpmanager but can't get the birdseye working.
>>>>>>>     I will appreciate if anyone could assist.
>>>>>>     Hi Charles,
>>>>>>     Can you check out the paragraph entitled "The Best Way to Ask
>>>>>>     for Help" at https://www.ixpmanager.org/support?
>>>>>     Also, I previously provided this link:
>>>>>     https://docs.ixpmanager.org/features/looking-glass/#debugging
>>>>>     which asks anyone with issues to:
>>>>>>     email the IXP Manager mailing list with the output of all of
>>>>>>     the following commands from both sections.
>>>>>     - Barry
>>>     --
>>>     Kind regards,
>>>     Barry O'Donovan
>>>     INEX Operations
>>>     https://www.inex.ie/support/
>>>     +353 1 531 3339
>>
>
>
>--
>Kind regards,
>Barry O'Donovan
>INEX Operations
>
>https://www.inex.ie/support/
>+353 1 531 3339
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20200501/949c0b04/attachment-0001.htm>


More information about the ixpmanager mailing list