Ad Widget

Collapse

How to support multiple timezones

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emmanux
    Member
    Zabbix Certified Specialist
    • Mar 2013
    • 47

    #1

    How to support multiple timezones

    You don't need to go distributed (Central/childs) to achieve support for multiple timezones.
    It's true that the Zabbix's GUI (zabbix-frontend-php) doesn't support multiple timezones out-of-the-box, but you can get it by creating some symlinks and adding some configuration to your /etc/zabbix/apache.conf

    Example

    Symlinks:
    Code:
    /usr/share/zabbix-co -> /usr/share/zabbix
    /usr/share/zabbix-ar -> /usr/share/zabbix
    Modifications to /etc/zabbix/apache.conf:
    Code:
    <IfModule mod_alias.c>
        Alias /co /usr/share/zabbix-co
    </IfModule>
    
    <Directory "/usr/share/zabbix-co">
        Options FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
    
        php_value max_execution_time 300
        php_value memory_limit 128M
        php_value post_max_size 16M
        php_value upload_max_filesize 2M
        php_value max_input_time 300
        php_value date.timezone America/Bogota
    </Directory>
    
    <IfModule mod_alias.c>
        Alias /ar /usr/share/zabbix-ar
    </IfModule>
    
    <Directory "/usr/share/zabbix-ar">
        Options FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
    
        php_value max_execution_time 300
        php_value memory_limit 128M
        php_value post_max_size 16M
        php_value upload_max_filesize 2M
        php_value max_input_time 300
        php_value date.timezone America/Argentina/Buenos_Aires
    </Directory>
    Doing so, you got three different urls:
    http://yourzabbix.server/ar (Argentina timezone)
    http://yourzabbix.server/co (Colombia timezone)
    http://yourzabbix.server/zabbix (default)

    Each showing the same events and graphs, but according to the correct timezone.
Working...