Ad Widget

Collapse

Ask for help, zabbix installed good but not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • taenacup
    Junior Member
    • Jul 2012
    • 1

    #1

    Ask for help, zabbix installed good but not working

    Previously I installed Zabbix 1.8.1 on Ubuntu 10.04 using apt-get install zabbix-server-mysql. Everything went all right and I can use its frontend. However, it was not working well with zabbix agent 2.0 I installed in a monitored PC.

    So, I desired to switch to 2.0. I autoremove zabbix 1.8.1 and I installed 2.0 everything mentioned in http://www.zabbix.com/documentation/...lation/install.

    The problem now is when I go to localhost/zabbix/, it is the installation page of 1.8 despite php files of 2.0 in /var/www/zabbix.

    Any log files could be requested. Any help would be appreciated.
  • scmurcott
    Junior Member
    • Feb 2010
    • 2

    #2
    Zabbix 2 installation

    I would recommend setting up a virtual host for Zabbix 2 that has a different server name. It sounds like the apache configuration is not pointing to the right php.

    That way you can be sure about where the installation is located on the server. Follow the steps to make the server binaries etc... the php frontend stuff you should move to somewhere like /var/www/zabbix2 (in fact you could just make /var/www/zabbix a symlink that points to your zabbix php frontend.

    If you want to test before making changes to bind (or whatever dns) you can just modify your hosts file eg:

    Add an entry with the new server name and ip address of the server.

    192.168.122.177 zabbix2.local.vmnet

    example of a vhost:

    <VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName zabbix2.local.vmnet
    DocumentRoot /srv/www/zabbix-2.0.1/frontends/php
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>
    <Directory /srv/www/zabbix-2.0.1/frontends/php/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

    </VirtualHost>


    Remeber to configure your zabbix server configuration in /etc/zabbix with the same database as the one in frontends/php/conf/zabbix.conf.php

    Hope that helps.

    Comment

    Working...