[ixpmanager] ?==?utf-8?q? ?==?utf-8?q? ?= problem with BIrdEye v1.2
bbalaawi@mtit.gov.ps
bbalaawi at mtit.gov.ps
Wed Sep 16 00:13:39 IST 2020
Hi Nick
desapoint , there is no Rrunning birdeye :
:
mysql> SELECT * FROM routers WHERE id = 1\G
*************************** 1. row ***************************
id: 1
vlan_id: 1
handle: rs1-lan1-ipv4
protocol: 4
type: 1
name: IXP Route Server #1
shortname: RS1 - VLAN10 - IPv4
router_id: 185.153.160.203
peering_ip: 185.153.160.203
asn: 61274
software: 6
software_version: 2.0.7
operating_system: Ubunitu Linux
operating_system_version: 20.04
mgmt_host: 192.168.1.203
api: http://rs1-lan1-ipv4.ps-ix.ps/api
api_type: 1
lg_access: 0
quarantine: 0
bgp_lc: 1
rpki: 1
rfc1997_passthru: 0
template: api/v4/router/server/bird2/standard
skip_md5: 1
last_updated: 2020-09-16 01:49:17
1 row in set (0.01 sec)
root at ixpmanager:/srv/ixpmanager# dig +short rs1-lan1-ipv4.ps-ix.ps
192.168.1.203
root at ixpmanager:/srv/ixpmanager# curl -v http://rs1-lan1-ipv4.ps-ix.ps/api/status
* Trying 192.168.1.203:80...
* TCP_NODELAY set
* Connected to rs1-lan1-ipv4.ps-ix.ps (192.168.1.203) port 80 (#0)
> GET /api/status HTTP/1.1
> Host: rs1-lan1-ipv4.ps-ix.ps
> User-Agent: curl/7.68.0
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 404 Not Found
< Content-Type: text/html
< Content-Length: 341
< Date: Tue, 15 Sep 2020 22:56:32 GMT
< Server: lighttpd/1.4.55
<
<?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>
* Connection #0 to host rs1-lan1-ipv4.ps-ix.ps left intact
root at bird:~# netstat -lpn | grep lighttpd
tcp 0 0 192.168.1.203:80 0.0.0.0:* LISTEN 979/lighttpd
root at bird:~# netstat -lpn | grep php
tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 866/php-fpm: master
root at bird:/usr/local/sbin# cat /etc/lighttpd/lighttpd.conf
server.modules = (
"mod_indexfile",
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_rewrite",
)
#server.document-root = "/var/www/html"
server.document-root = "/srv/birdseye/public"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
#server.pid-file = "/run/lighttpd.pid"
server.pid-file = "/var/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 80
server.bind = "192.168.1.203"
# strict parsing and normalization of URL for consistency and security
# https://redmine.lighttpd.net/projects/lighttpd/wiki/Server_http-parseoptsDetails
# (might need to explicitly set "url-path-2f-decode" = "disable"
# if a specific application is encoding URLs inside url-path)
server.http-parseopts = (
"header-strict" => "enable",# default
"host-strict" => "enable",# default
"host-normalize" => "enable",# default
"url-normalize-unreserved"=> "enable",# recommended highly
"url-normalize-required" => "enable",# recommended
"url-ctrls-reject" => "enable",# recommended
"url-path-2f-decode" => "enable",# recommended highly (unless breaks app)
#"url-path-2f-reject" => "enable",
"url-path-dotseg-remove" => "enable",# recommended highly (unless breaks app)
#"url-path-dotseg-reject" => "enable",
#"url-query-20-plus" => "enable",# consistency in query string
)
#index-file.names = ( "index.php", "index.html" )
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.conf.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
#include "/etc/lighttpd/conf-enabled/*.conf"
#server.compat-module-load = "disable"
server.modules += (
"mod_compress",
"mod_dirlisting",
"mod_staticfile",
)
#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",
# "^/[^\?]*(\?.*)?$" => "index.php/$1"
Why not resolve please ?????
On Monday, September 14, 2020 17:59 EDT, bbalaawi at mtit.gov.ps <bbalaawi at mtit.gov.ps> wrote:
Hi Nick
Thanks for you reply , i will try it . but i have now one question about " mgmt_host" at setting of Route server must be Nugios server or not , so which the best configuration of " mgmt_host" canbe set ?
On Friday, September 11, 2020 16:43 EDT, Nick Hilliard <nick at foobar.org> wrote:
Hi Basil,
The laravel log file says:
> [2020-09-07 04:06:48] development.ERROR: content is not defined. {"userId":1,"exception":"[object] (RuntimeException(code: 0): content is not defined. at /srv/ixpmanager/vendor/foil/foil/src/Extensions/Helpers.php:343)
This is a generic error which means that the Birdseye microservice is
not set up correctly.
bbalaawi at mtit.gov.ps wrote on 10/09/2020 17:19:
> api: *http://192.168.1.203/api*
This is probably the problem . Birdseye uses the hostname of the API
Endpoint to work out which environment file to use. Can you take a look
at the documentation here:
https://github.com/inex/birdseye/#configuration
So you'll need to create DNS aliases for rs1-lan1-ipv4.yourdomain.ps.
If this is set up correctly, then the following URL should return the
microservice status in JSON format:
https://rs1-lan1-ipv4.yourdomain.ps/api/status
Once you can browse this URL, you need to change the API Endpoint
parameter in the Router configuration from http://192.168.1.203/api to:
http://rs1-lan1-ipv4.yourdomain.ps/api
On another issue, it will be easier to get this working with the default
skin before attempting to create your own skins.
Nick
--
Eng.Basil Elbalaawi
QOS Department - Complaints Unit
bbalaawi at mtit.gov.ps
SecdepBasil at yahoo.com
Jawwal 0599409108
Wataniay 0562504972
--
Eng.Basil Elbalaawi
QOS Department - Complaints Unit
bbalaawi at mtit.gov.ps
SecdepBasil at yahoo.com
Jawwal 0599409108
Wataniay 0562504972
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20200915/c8060c6f/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3C56-5F614A80-27-46AE7C00
Type: image/png
Size: 36523 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20200915/c8060c6f/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 3C56-5F614A80-29-46AE7C00
Type: image/png
Size: 34315 bytes
Desc: not available
URL: <https://www.inex.ie/pipermail/ixpmanager/attachments/20200915/c8060c6f/attachment-0003.png>
More information about the ixpmanager
mailing list