Ad Widget

Collapse

Cant access web interface

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paddyyy
    Junior Member
    • Jun 2017
    • 1

    #1

    Cant access web interface

    Hello all,
    I just installed zabbix 3.0 on my virtual machine -centos7- and i did not get any error during&after the installation but when i type server-ip/zabbix in my browser all i get is 'unable to connect' screen

    This was my first attempt to install zabbix and i do not know much. I checked some sites for similar errors and i found some stuff about allowing to remote access but i could not solve my problem.
    Thanks for your time

    edit: output of systemctl status

    Code:
    ● zabbix-server.service - Zabbix Server
       Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
       Active: active (running) since Mon 2017-06-05 17:31:12 +03; 20min ago
     Main PID: 3275 (zabbix_server)
       CGroup: /system.slice/zabbix-server.service
               ├─3275 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
               ├─3278 /usr/sbin/zabbix_server: configuration syncer [synced configuration in 0.008189 sec, idle 60 sec
               ├─3279 /usr/sbin/zabbix_server: db watchdog [synced alerts config in 0.005172 sec, idle 60 sec
               ├─3280 /usr/sbin/zabbix_server: poller #1 [got 0 values in 0.000005 sec, idle 5 sec
               ├─3281 /usr/sbin/zabbix_server: poller #2 [got 0 values in 0.000008 sec, idle 5 sec
               ├─3282 /usr/sbin/zabbix_server: poller #3 [got 0 values in 0.000005 sec, idle 5 sec
               ├─3283 /usr/sbin/zabbix_server: poller #4 [got 0 values in 0.000006 sec, idle 5 sec
               ├─3284 /usr/sbin/zabbix_server: poller #5 [got 0 values in 0.000005 sec, idle 5 sec
               ├─3285 /usr/sbin/zabbix_server: unreachable poller #1 [got 0 values in 0.000005 sec, idle 5 sec
               ├─3286 /usr/sbin/zabbix_server: trapper #1 [processed data in 0.000000 sec, waiting for connection
               ├─3287 /usr/sbin/zabbix_server: trapper #2 [processed data in 0.000000 sec, waiting for connection
               ├─3288 /usr/sbin/zabbix_server: trapper #3 [processed data in 0.000000 sec, waiting for connection
               ├─3289 /usr/sbin/zabbix_server: trapper #4 [processed data in 0.000000 sec, waiting for connection
               ├─3292 /usr/sbin/zabbix_server: trapper #5 [processed data in 0.000000 sec, waiting for connection
               ├─3293 /usr/sbin/zabbix_server: icmp pinger #1 [got 0 values in 0.000005 sec, idle 5 sec
               ├─3294 /usr/sbin/zabbix_server: alerter [sent alerts: 0 success, 0 fail in 0.003245 sec, idle 30 sec
               ├─3295 /usr/sbin/zabbix_server: housekeeper [startup idle for 30 minutes
               ├─3296 /usr/sbin/zabbix_server: timer #1 [processed 0 triggers, 0 events in 0.000027 sec, 0 maintenances in 0.001891 sec, idle 30 sec
               ├─3299 /usr/sbin/zabbix_server: http poller #1 [got 0 values in 0.003229 sec, idle 5 sec
               ├─3300 /usr/sbin/zabbix_server: discoverer #1 [processed 0 rules in 0.003558 sec, idle 60 sec
               ├─3301 /usr/sbin/zabbix_server: history syncer #1 [synced 0 items in 0.000001 sec, idle 1 sec
               ├─3302 /usr/sbin/zabbix_server: history syncer #2 [synced 0 items in 0.000001 sec, idle 1 sec
               ├─3303 /usr/sbin/zabbix_server: history syncer #3 [synced 0 items in 0.000001 sec, idle 1 sec
               ├─3308 /usr/sbin/zabbix_server: history syncer #4 [synced 0 items in 0.000002 sec, idle 1 sec
               ├─3309 /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.001337 sec, idle 3 sec
               ├─3310 /usr/sbin/zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000004 sec, idle 5 sec
               └─3311 /usr/sbin/zabbix_server: self-monitoring [processed data in 0.000009 sec, idle 1 sec
    
    Jun 05 17:31:12 localhost.localdomain systemd[1]: Starting Zabbix Server...
    Jun 05 17:31:12 localhost.localdomain systemd[1]: PID file /run/zabbix/zabbix_server.pid not readable (yet?) after start.
    Jun 05 17:31:12 localhost.localdomain systemd[1]: Started Zabbix Server.
    Last edited by paddyyy; 05-06-2017, 16:54.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    If you want use the Web frontend for Zabbix, please start the Web server.

    If you are using the package, did you install one of the following packages according to the DBMS you use?

    MySQL: zabbix-web-mysql
    PostgreSQL: zabbix-web-pgsql

    After installing either package, set timezone and start httpd.

    ex.
    Code:
    # yum install zabbix-web-mysql
    # vi /etc/httpd/conf.d/zabbix.conf
    Fix the following lines according to your time zone.
    php_value date.timezone
    Code:
    # systemctl start httpd

    Comment

    • uncram
      Junior Member
      • Jul 2017
      • 16

      #3
      Any ideas?

      Ok I did a yum remove zabbix-my-sql and it removed the httpd.conf.d zabbix.conf file. Then I reinstalled and it looks like a new clean version.

      Still get 404 when accessing frontend. Phpinfo is still working.

      This is httpd access log:
      [Mon Jul 10 09:56:27.241564 2017] [mpm_prefork:notice] [pid 28036] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.16 configured -- resuming normal operations
      [Mon Jul 10 09:56:27.241636 2017] [core:notice] [pid 28036] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
      [Mon Jul 10 09:56:39.476315 2017] [mpm_prefork:notice] [pid 28036] AH00170: caught SIGWINCH, shutting down gracefully
      [Mon Jul 10 09:57:22.163977 2017] [suexec:notice] [pid 28097] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
      [Mon Jul 10 09:57:22.195354 2017] [auth_digest:notice] [pid 28097] AH01757: generating secret for digest authentication ...
      [Mon Jul 10 09:57:22.196093 2017] [lbmethod_heartbeat:notice] [pid 28097] AH02282: No slotmem from mod_heartmonitor
      [Mon Jul 10 09:57:22.196165 2017] [ssl:warn] [pid 28097] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
      [Mon Jul 10 09:57:22.225392 2017] [mpm_prefork:notice] [pid 28097] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.16 con

      Comment

      Working...