<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style='font-size:10pt;font-family:Verdana,Arial,Helvetica,sans-serif;'><div id="message"></div><br id="br3"><div id="signature"></div><div id="content"><br> ---- On Sat, 03 Mar 2018 17:10:34 +0530m<b> barry.odonovan@inex.ie </b> wrote ----<br>A<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin-left: 5px;"><div>Hi Muyiwa,<br><br>> I am running a test lab to understand how bird and Birdseye works <br>> with IXP Manager. I was going through the router page in IXP Manager <br>> and it says the handle option is used in API calls<br><br>So it's not actually used in the API calls. That was the intention (and<br>maybe still should be) but as it stands IXP Manager just GETs the API<br>URL as given (so the 'simple' method you're trying to use below or the<br>DNS method as described at:<br><br><a href="https://github.com/inex/birdseye/blob/master/README.md#configuration" target="_blank">https://github.com/inex/birdseye/blob/master/README.md#configuration</a><br><br>> and I am not sure how that will work since I am running only one<br>> instance of Bird (IPv4) on my machine with no DNS configurations.<br><br>Should be fine (but slightly unusual in a typical production environment<br>where you'd probably have v4 + v6).<br><br>> I have attached my results on both machines using the <br>> "<a href="http://docs.ixpmanager.org/features/looking-glass/#debugging" target="_blank">http://docs.ixpmanager.org/features/looking-glass/#debugging</a>" <br>> template.<br><br>Thanks!<br><br>> root@ixpm:~# ping 192.168.10.141 PING 192.168.10.141<br><br>Looks good.<br><br>> root@ixpm:~# curl -v <a href="http://192.168.10.141/api/status" target="_blank">http://192.168.10.141/api/status</a> *   Trying <br>> 192.168.10.141... * Connected to 192.168.10.141 (192.168.10.141)<br>> port 80 (#0)<br>>> GET /api/status HTTP/1.1 Host: 192.168.10.141 User-Agent: <br>>> curl/7.47.0 Accept: */*<br>>> <br>> < HTTP/1.1 404 Not Found <br><br>Not good :-(<br><br>Looks like a lighttpd config issue as Birdseye throws a 500 (rather than<br>a 404).<br><br>This should work fine with just .env regardless of IXP Manager. You'll<br>need to concentrate on the Birdseye side of things. On face value, the<br>lighttpd file you sent looks fine but you'll need to go through it line<br>by line and test.<br><br> - Barry<br><br><br>> DEVICE RUNNING BIRD AND BIRD'S EYE<br>> <br>> root@ubuntu:~# ls -la /var/run/bird total 0 drwxrwxr-x  2 bird bird <br>> 60 Feb 28 02:08 . drwxr-xr-x 27 root root 820 Feb 28 02:15 .. <br>> srw-rw----  1 bird bird   0 Feb 28 02:08 bird.ctl<br>> <br>> root@ubuntu:~# ls -la /srv/birdseye-v1.1.0/.env -rw-r--r-- 1 root <br>> root 2892 Feb 22 07:31 /srv/birdseye-v1.1.0/.env<br>> <br>> root@ubuntu:~# cat /srv/birdseye-v1.1.0/.env | egrep -v <br>> '(^#)|(^\s*$)' BIRDC="/usr/bin/sudo /srv/birdseye-v1.1.0/bin/birdc<br>> -4 -s /var/run/bird/bird.ctl" CACHE_DRIVER=file <br>> LOOKING_GLASS_ENABLED=true<br>> <br>> root@ubuntu:~# /usr/sbin/birdc -s /var/run/bird/bird.ctl show status<br>>  BIRD 1.5.0 ready. BIRD 1.5.0 Router ID is 198.51.100.1 Current<br>> server time is 2018-02-28 03:07:57 Last reboot on 2018-02-28 02:08:32<br>> Last reconfiguration on 2018-02-28 02:08:32 Daemon is up and running<br>> <br>> root@ubuntu:~# cat /etc/sudoers /etc/sudoers.d/* | grep birdseye <br>> www-data   ALL=(ALL)  NOPASSWD: /srv/birdseye-v1.1.0/bin/birdc<br>> <br>> root@ubuntu:~# /srv/birdseye-v1.1.0/bin/birdc -4 -s <br>> /var/run/bird/bird.ctl show status BIRD 1.5.0 ready. Access <br>> restricted BIRD 1.5.0 Router ID is 198.51.100.1 Current server time <br>> is 2018-02-28 03:09:08 Last reboot on 2018-02-28 02:08:32 Last <br>> reconfiguration on 2018-02-28 02:08:32 Daemon is up and running<br>> <br>> root@ubuntu:~# netstat -lpn | grep lighttpd tcp        0      0 <br>> 192.168.10.141:80       0.0.0.0:*               LISTEN 4015/lighttpd<br>> unix  2      [ ACC ]     STREAM     LISTENING     52477 4039/php-cgi<br>> /var/run/lighttpd/php.socket-0<br>> <br>> root@ubuntu:/# cat /etc/lighttpd/lighttpd.conf server.modules = ( <br>> "mod_access", "mod_alias", "mod_compress", "mod_redirect", # <br>> "mod_rewrite", )<br>> <br>> server.document-root        = "/srv/birdseye-v1.1.0/public" <br>> server.upload-dirs          = ( "/var/cache/lighttpd/uploads" ) <br>> server.errorlog             = "/var/log/lighttpd/error.log" <br>> server.pid-file             = "/var/run/lighttpd.pid"<br>> server.username = "www-data" server.groupname            = "www-data"<br>> server.port = "80" server.bind                 = "192.168.10.141"<br>> <br>> index-file.names            = ( "index.php", "index.html", <br>> "index.lighttpd.html" ) url.access-deny             = ( "~", ".inc" )<br>> static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )<br>> <br>> compress.cache-dir          = "/var/cache/lighttpd/compress/" <br>> compress.filetype           = ( "application/javascript",<br>> "text/css", "text/html", "text/plain" )<br>> <br>> # default listening port for IPv6 falls back to the IPv4 port ## Use <br>> ipv6 if available #include_shell "/usr/share/lighttpd/use-ipv6.pl "<br>> + server.port include_shell <br>> "/usr/share/lighttpd/create-mime.assign.pl" include_shell <br>> "/usr/share/lighttpd/include-conf-enabled.pl"<br>> <br>> url.redirect = () url.rewrite-once = ( <br>> "^/(css|img|js|fonts)/.*\.(jpg|jpeg|gif|png|swf|avi|mpg|mpeg|mp3|flv|ico|css|js|woff|ttf)$"<br>><br>> <br>=> "$0", "^/(favicon\.ico|robots\.txt|sitemap\.xml)$" => "$0",<br>> "^/[^\?]*(\?.*)?$" => "index.php/$1" )<br>> <br>> <br>> <br>> Best regards,<br>> <br>> Muyiwa (IXPN)<br>> <br>> <br>> -----Original Message----- From: ixpmanager <br>> [mailto:<a href="mailto:ixpmanager-bounces@inex.ie" target="_blank">ixpmanager-bounces@inex.ie</a>] On Behalf Of Barry O'Donovan <br>> Sent: 22 February 2018 15:39 To: INEX IXP Manager Mailing List <br>> <<a href="mailto:ixpmanager@inex.ie" target="_blank">ixpmanager@inex.ie</a>> Subject: Re: [ixpmanager] Birdseye <br>> configurations<br>> <br>> Hi Muyiwa,<br>> <br>> can you work through:<br>> <br>> <a href="http://docs.ixpmanager.org/features/looking-glass/#debugging" target="_blank">http://docs.ixpmanager.org/features/looking-glass/#debugging</a><br>> <br>> <br>> Separately, Bird 1.5 is pretty old at this stage. We'd recommend <br>> v1.6.3 which is very stable and supports large BGP communities.<br>> <br>> - Barry<br>> <br>> <br>> <a href="mailto:m.daada@ixp.net.ng" target="_blank">m.daada@ixp.net.ng</a> wrote:<br>>> Hello Guys,<br>>> <br>>> <br>>> <br>>> I have followed all the steps in <a href="https://github.com/inex/birdseye" target="_blank">https://github.com/inex/birdseye</a> <br>>> to install Birdseye on a test router but I get an Error 404<br>>> message when I try to open the following URL<br>>> “<a href="http://x.x.x.x/api/status" target="_blank">http://x.x.x.x/api/status</a>”<br>>> <br>>> <br>>> <br>>> ubuntu:# /srv/birdseye-v1.1.0/bin/birdc -4 -s <br>>> /var/run/bird/bird.ctl show status<br>>> <br>>> BIRD 1.5.0 ready.<br>>> <br>>> Access restricted<br>>> <br>>> BIRD 1.5.0<br>>> <br>>> Router ID is 198.51.100.1<br>>> <br>>> Current server time is 2018-02-22 04:52:54<br>>> <br>>> Last reboot on 2018-02-22 04:35:08<br>>> <br>>> Last reconfiguration on 2018-02-22 04:35:08<br>>> <br>>> Daemon is up and running<br>>> <br>>> <br>>> <br>>> ubuntu:# /usr/sbin/birdc -s /var/run/bird/bird.ctl show status<br>>> <br>>> BIRD 1.5.0 ready.<br>>> <br>>> BIRD 1.5.0<br>>> <br>>> Router ID is 198.51.100.1<br>>> <br>>> Current server time is 2018-02-22 05:26:34<br>>> <br>>> Last reboot on 2018-02-22 04:35:08<br>>> <br>>> Last reconfiguration on 2018-02-22 04:35:08<br>>> <br>>> Daemon is up and running<br>>> <br>>> <br>>> <br>>> ubuntu:# ls -la /var/run/bird<br>>> <br>>> total 0<br>>> <br>>> drwxrwxr-x  2 bird bird  60 Feb 22 04:35 .<br>>> <br>>> drwxr-xr-x 27 root root 800 Feb 22 03:31 ..<br>>> <br>>> srw-rw----  1 bird bird   0 Feb 22 04:35 bird.ctl<br>>> <br>>> <br>>> <br>>> Lighttpd conf file:<br>>> <br>>> <br>>> <br>>> <br>>> <br>>> server.modules = (<br>>> <br>>> "mod_access",<br>>> <br>>> "mod_alias",<br>>> <br>>> "mod_compress",<br>>> <br>>> "mod_redirect",<br>>> <br>>> #       "mod_rewrite",<br>>> <br>>> )<br>>> <br>>> <br>>> <br>>> server.document-root        = "/srv/birdseye-v1.1.0/public"<br>>> <br>>> server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )<br>>> <br>>> server.errorlog             = "/var/log/lighttpd/error.log"<br>>> <br>>> server.pid-file             = "/var/run/lighttpd.pid"<br>>> <br>>> server.username             = "www-data"<br>>> <br>>> server.groupname            = "www-data"<br>>> <br>>> server.port                 = "80"<br>>> <br>>> server.bind                 = "x.x.x.x"<br>>> <br>>> <br>>> <br>>> index-file.names            = ( "index.php", "index.html", <br>>> "index.lighttpd.html$<br>>> <br>>> url.access-deny             = ( "~", ".inc" )<br>>> <br>>> static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )<br>>> <br>>> <br>>> <br>>> compress.cache-dir          = "/var/cache/lighttpd/compress/"<br>>> <br>>> compress.filetype           = ( "application/javascript", <br>>> "text/css", "text/htm$<br>>> <br>>> <br>>> <br>>> # default listening port for IPv6 falls back to the IPv4 port<br>>> <br>>> ## Use ipv6 if available<br>>> <br>>> #include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port<br>>> <br>>> include_shell "/usr/share/lighttpd/create-mime.assign.pl"<br>>> <br>>> include_shell "/usr/share/lighttpd/include-conf-enabled.pl"<br>>> <br>>> url.redirect = ()<br>>> <br>>> url.rewrite-once = (<br>>> <br>>> <br>>> "^/(css|img|js|fonts)/.*\.(jpg|jpeg|gif|png|swf|avi|mpg|mpeg|mp3|flv|i<br>>><br>>><br>>> <br>c$<br>>> <br>>> "^/(favicon\.ico|robots\.txt|sitemap\.xml)$" => "$0",<br>>> <br>>> "^/[^\?]*(\?.*)?$" => "index.php/$1"<br>>> <br>>> )<br>>> <br>>> <br>>> <br>>> I also created a phpinfo file in “/srv/birdseye-v1.1.0” and I can <br>>> access that page via x.x.x.x/phpinfo.php so I know lighttpd and<br>>> php works.<br>>> <br>>> <br>>> <br>>> Best regards,<br>>> <br>>> <br>>> <br>>> Muyiwa (IXPN)<br>>> <br>>> <br>>> <br>>> <br>>> <br>>> <br>>> <br>>> <br>>> <<a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient" target="_blank">http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient</a>><br>>><br>>><br>>> <br>Virus-free. www.avg.com<br>>> <<a href="http://www.avg.com/email-signature?utm_medium=email&utm_source=link&u" target="_blank">http://www.avg.com/email-signature?utm_medium=email&utm_source=link&u</a><br>>><br>>><br>>> <br>tm_campaign=sig-email&utm_content=emailclient><br>>> <br>>> <br>>> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2><br>>> <br>>> _______________________________________________ INEX IXP Manager <br>>> mailing list <a href="mailto:ixpmanager@inex.ie" target="_blank">ixpmanager@inex.ie</a> <br>>> <a href="https://www.inex.ie/mailman/listinfo/ixpmanager" target="_blank">https://www.inex.ie/mailman/listinfo/ixpmanager</a><br>> <br><br>-- <br><br>Kind regards,<br>Barry O'Donovan<br>INEX Operations<br><br><a href="https://www.inex.ie/support/" target="_blank">https://www.inex.ie/support/</a><br>+353 1 531 3339<br><br><br>_______________________________________________<br>INEX IXP Manager mailing list<br><a href="mailto:ixpmanager@inex.ie" target="_blank">ixpmanager@inex.ie</a><br><a href="https://www.inex.ie/mailman/listinfo/ixpmanager" target="_blank">https://www.inex.ie/mailman/listinfo/ixpmanager</a><br></div></blockquote></div></div><br></body></html>