Hey guys. So I’ve just installed Grafana and I can’t seem to be able to access the web interface trought my browser (getting ERR_CONNECTION_TIMED_OUT). I’ve installed Grafana in the same virtual machine where I got Zabbix up and running so I should be able to get to the web interface with the same IP address as Zabbix (http://zabbix-ip:3000), right?
The weird thing is that when I check the log file it doesn’t seem to have any problems:
t=2019-04-24T17:09:32+0000 lvl=info msg=“Starting Grafana” logger=server version=6.1.4 commit=fef1733 branch=HEAD compiled=2019-04-16T09:04:07+0000
t=2019-04-24T17:09:32+0000 lvl=info msg=“Config loaded from” logger=settings file=/usr/share/grafana/conf/defaults.ini
t=2019-04-24T17:09:32+0000 lvl=info msg=“Config loaded from” logger=settings file=/etc/grafana/grafana.ini
t=2019-04-24T17:09:32+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.data=/var/lib/grafana”
t=2019-04-24T17:09:32+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.logs=/var/log/grafana”
t=2019-04-24T17:09:32+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.plugins=/var/lib/grafana/plugins”
t=2019-04-24T17:09:32+0000 lvl=info msg=“Config overridden from command line” logger=settings arg=“default.paths.provisioning=/etc/grafana/provisioning”
t=2019-04-24T17:09:32+0000 lvl=info msg=“Path Home” logger=settings path=/usr/share/grafana
t=2019-04-24T17:09:32+0000 lvl=info msg=“Path Data” logger=settings path=/var/lib/grafana
t=2019-04-24T17:09:32+0000 lvl=info msg=“Path Logs” logger=settings path=/var/log/grafana
t=2019-04-24T17:09:32+0000 lvl=info msg=“Path Plugins” logger=settings path=/var/lib/grafana/plugins
t=2019-04-24T17:09:32+0000 lvl=info msg=“Path Provisioning” logger=settings path=/etc/grafana/provisioning
t=2019-04-24T17:09:32+0000 lvl=info msg=“App mode production” logger=settings
t=2019-04-24T17:09:32+0000 lvl=info msg=“Writing PID file” logger=server path=/var/run/grafana/grafana-server.pid pid=25164
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing HTTPServer” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing SqlStore” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Connecting to DB” logger=sqlstore dbtype=sqlite3
t=2019-04-24T17:09:32+0000 lvl=info msg=“Starting DB migration” logger=migrator
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing InternalMetricsService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing SearchService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing PluginManager” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Starting plugin search” logger=plugins
t=2019-04-24T17:09:32+0000 lvl=info msg=“Registering plugin” logger=plugins name=Zabbix
t=2019-04-24T17:09:32+0000 lvl=info msg=“Registering plugin” logger=plugins name=“Zabbix Problems”
t=2019-04-24T17:09:32+0000 lvl=info msg=“Registering plugin” logger=plugins name=Zabbix
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing RenderingService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing SqlStore” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Connecting to DB” logger=sqlstore dbtype=sqlite3
t=2019-04-24T17:09:32+0000 lvl=info msg=“Starting DB migration” logger=migrator
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing InternalMetricsService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing SearchService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing PluginManager” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Starting plugin search” logger=plugins
t=2019-04-24T17:09:32+0000 lvl=info msg=“Registering plugin” logger=plugins name=Zabbix
t=2019-04-24T17:09:32+0000 lvl=info msg=“Registering plugin” logger=plugins name=“Zabbix Problems”
t=2019-04-24T17:09:32+0000 lvl=info msg=“Registering plugin” logger=plugins name=Zabbix
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing RenderingService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing AlertingService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing DatasourceCacheService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing HooksService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing LoginService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing QuotaService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing RemoteCache” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing ServerLockService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing TracingService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing UsageStatsService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing UserAuthTokenService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing CleanUpService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing NotificationService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing ProvisioningService” logger=server
t=2019-04-24T17:09:32+0000 lvl=info msg=“Initializing Stream Manager”
t=2019-04-24T17:09:32+0000 lvl=info msg=“HTTP Server Listen” logger=http.server address=0.0.0.0:3000 protocol=http subUrl= socket=
t=2019-04-24T17:36:45+0000 lvl=info msg=“Request Completed” logger=context userId=0 orgId=0 uname= method=GET path=/ status=302 remote_addr=10.100.100.242 time_ms=0 size=29 referer =$
The IP where Zabbix is running is 10.100.100.242/zabbix and when I run these commands on the port 3000 I get the following outputs:
input: nc -v 10.100.100.242 3000
output: Connection to 10.100.100.242 3000 port [tcp/*] succeeded!
HTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=utf-8
Connection: close
input: nmap -p 3000 10.100.100.242
output: Starting Nmap 7.01 ( https://nmap.org ) at 2019-04-24 18:18 UTC
Nmap scan report for zabbix.zabbix.lan (10.100.100.242)
Host is up (0.000069s latency).
PORT STATE SERVICE
3000/tcp open ppp
input: wget 10.100.100.242:3000
output: --2019-04-24 18:20:13-- http://10.100.100.242:3000/
Connecting to 10.100.100.242:3000... connected.
HTTP request sent, awaiting response... 302 Found
Location: /login [following]
--2019-04-24 18:20:13-- http://10.100.100.242:3000/login
Reusing existing connection to 10.100.100.242:3000.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’
index.html.2 [ <=> ] 22.04K --.-KB/s in 0s
2019-04-24 18:20:13 (461 MB/s) - ‘index.html’ saved [22568]
Where the file is a description of what I believe should be the login screen of grafana on the browser.
input: netstat -tulpn
output:
.................................................................
tcp6 0 0 :::3000 :::* LISTEN 25164/grafana-serve
.................................................................
input: curl -I http://10.100.100.242:3000
output: HTTP/1.1 302 Found
Content-Type: text/html; charset=utf-8
Location: /login
Set-Cookie: redirect_to=%252F; Path=/; HttpOnly
Date: Wed, 24 Apr 2019 18:26:12 GMT
So from the results of these commands I believe the port is available and working as it should be, but I still can’t connect via browser. This is my grafana.ini file configuration for the server:
#################################### Server ####################################
[server]
Protocol (http, https, socket)
;protocol = http
The ip address to bind to, empty will bind to all interfaces
;http_addr =
The http port to use
;http_port = 3000
The public facing domain name used to access grafana from a browser
;domain = localhost
Redirect to correct domain if host header does not match domain
Prevents DNS rebinding attacks
;enforce_domain = false
The full public facing url you use in browser, used for redirects and emails
If you use reverse proxy and sub path specify full url (with sub path)
;root_url = http://grafana.staged-by-discourse.com
Log web requests
;router_logging = false
the path relative working path
;static_root_path = public
I’ve tried to set http_addr to 10.100.100.242 but nothing changed and I don’t know what else to do. Can anyone give me a hand please?
Thank you!