[ixpmanager] Birdseye
Diarmuid O Briain
diarmuid at obriain.com
Thu Apr 18 14:58:00 IST 2019
Hi,
Please ignore my last mail, the problem is solved.
$ *curl http://rs1-lan1-ipv4.netlabs.tst/api/status
<http://rs1-lan1-ipv4.netlabs.tst/api/status>*
{"api":{"from_cache":true,"ttl_mins":1,"version":"1.1.4","max_routes":1000},"status":{"version":"1.6.3","router_id":"199.9.9.1","server_time":"2019-04-18T13:56:38+00:00","last_reboot":"2019-04-18T13:22:57+00:00","last_reconfig":"2019-04-18T13:22:57+00:00","message":"Daemon
is up and running"}}
regards,
Diarmuid
--
*Irish by birth, located in Uganda but Munster by the grace of the Gods.*
On Thu, 18 Apr 2019 at 16:47, Diarmuid O Briain <diarmuid at obriain.com>
wrote:
> Hi,
>
> I had birdseye working fine before and I returned to do some work with it
> to find it is not working. All the various steps appear file however the
> lighttpd webserver doesn't appear to be linking to bird as it is giving a
> 404 error.
>
> root at rs1:~#* ip addr show dev ens4*
> 276: ens4 at if277: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue
> state UP group default qlen 1000
> link/ether 00:16:3e:90:48:8a brd ff:ff:ff:ff:ff:ff link-netnsid 0
> inet 198.8.8.232/24 brd 198.8.8.255 scope global ens4
> valid_lft forever preferred_lft forever
> inet6 2a98:8:8::232/48 scope global
> valid_lft forever preferred_lft forever
> inet6 fe80::216:3eff:fe90:488a/64 scope link
> valid_lft forever preferred_lft forever
>
> root at rs1:~#* cat /etc/sudoers.d/91-www-data-user*
> # Gives the www-data user permission to run the birdc script.
> www-data ALL=(ALL) NOPASSWD: /srv/birdseye/bin/birdc
>
> root at rs1:~# *ls -la /etc/sudoers.d/91-www-data-user *
> -r--r----- 1 root root 128 Apr 18 11:19 /etc/sudoers.d/91-www-data-user
>
> root at rs1:~#* cat /srv/birdseye/birdseye-rs1-lan1-ipv4.env | grep -E -v
> '(^#|^$)'*
> CACHE_DRIVER=file
> BIRDC="/usr/bin/sudo /srv/birdseye/bin/birdc -4 -s /var/run/bird/bird.ctl"
> LOOKING_GLASS_ENABLED=true
>
> root at rs1:~# */usr/bin/sudo /srv/birdseye/bin/birdc -4 -s
> /var/run/bird/bird.ctl show protocol*
> BIRD 1.6.3 ready.
> Access restricted
> name proto table state since info
> device1 Device master up 2019-04-18 13:22:57
> kernel1 Kernel master up 2019-04-18 13:22:57
> ISP1 BGP master up 2019-04-18 13:23:02 Established
> ISP2 BGP master up 2019-04-18 13:23:01 Established
> ISP3 BGP master up 2019-04-18 13:25:38 Established
>
> root at rs1:~# *ls -la /var/run/bird*
> total 0
> drwxrwxr-x 2 bird bird 80 Apr 18 13:22 .
> drwxr-xr-x 21 root root 740 Apr 18 10:54 ..
> srw-rw---- 1 bird bird 0 Apr 18 13:22 bird.ctl
> srw-rw---- 1 bird bird 0 Apr 18 12:05 bird6.ctl
>
> root at rs1:~# *ls -la /srv/birdseye/*env*
> -rw-r--r-- 1 root root 2994 Apr 18 11:19
> /srv/birdseye/birdseye-rs1-lan1-ipv4.env
> -rw-r--r-- 1 root root 2995 Apr 18 11:19
> /srv/birdseye/birdseye-rs1-lan1-ipv6.env
>
> root at rs1:~#* sudo /usr/sbin/birdc -s /var/run/bird/bird.ctl show status*
> BIRD 1.6.3 ready.
> BIRD 1.6.3
> Router ID is 199.9.9.1
> Current server time is 2019-04-18 13:32:10
> Last reboot on 2019-04-18 13:22:57
> Last reconfiguration on 2019-04-18 13:22:57
> Daemon is up and running
>
> root at rs1:~# *systemctl status lighttpd.service*
> ● lighttpd.service - Lighttpd Daemon
> Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor
> preset: enabled)
> Active: active (running) since Thu 2019-04-18 12:59:45 UTC; 41min ago
> Process: 11457 ExecStartPre=/usr/sbin/lighttpd -tt -f
> /etc/lighttpd/lighttpd.conf (code=exited, status=0/SUCCESS)
> Main PID: 11462 (lighttpd)
> Tasks: 6 (limit: 4915)
> CGroup: /system.slice/lighttpd.service
> ├─11462 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
> ├─11467 /usr/bin/php-cgi
> ├─11468 /usr/bin/php-cgi
> ├─11469 /usr/bin/php-cgi
> ├─11470 /usr/bin/php-cgi
> └─11471 /usr/bin/php-cgi
>
> Apr 18 12:59:45 rs1 systemd[1]: Starting Lighttpd Daemon...
> Apr 18 12:59:45 rs1 systemd[1]: Started Lighttpd Daemon.
>
> ubuntu at IXP:~$ *fping -4 -A rs1-lan1-ipv4.netlabs.tst*
> 198.8.8.232 is alive
>
> ubuntu at IXP:~$ *curl http://rs1-lan1-ipv4.netlabs.tst/api/status
> <http://rs1-lan1-ipv4.netlabs.tst/api/status>*
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
> <head>
> <title>404 - Not Found</title>
> </head>
> <body>
> <h1>404 - Not Found</h1>
> </body>
> </html>
>
> regards,
>
> Diarmuid
>
>
> --
>
> *Irish by birth, located in Uganda but Munster by the grace of the Gods.*
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20190418/78a98734/attachment-0001.html>
More information about the ixpmanager
mailing list