Zabbix Server

zabbix 2.4 with apache

Zabbix Server 2.4 with apache and php

Configuration summary

Debian Jessie 8 Debian Jessie 8
Package postgresql-9.4 install
Files

/etc/postgresql/9.4/main/pg_hba.conf ensure file exist

# Database administrative login by Unix domain socket
local   all             postgres                                peer

# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     peer
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust
# IPv6 local connections:
host    all             all             ::1/128                 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#local   replication     postgres                                peer
#host    replication     postgres        127.0.0.1/32            md5
#host    replication     postgres        ::1/128                 md5

/etc/postgresql/9.4 ensure directory exist

/etc/postgresql/9.4/main ensure directory exist

/etc/postgresql ensure directory exist

/etc ensure directory exist

Hooks

Post restart

#!/bin/bash
set -ue

systemctl restart postgresql

# configure zabbix
# createdb -U postgres -h 127.0.0.1 zabbix
# psql -U postgres -h 127.0.0.1 zabbix < /usr/share/zabbix-server-pgsql/schema.sql
Package libapache2-mod-php5 install
Files

/etc/php5/apache2/conf.d/30-zabbix.ini ensure file exist

always_populate_raw_post_data=-1
date.timezone= "Australia/Sydney"

/etc/php5 ensure directory exist

/etc/php5/apache2/conf.d ensure directory exist

/etc/php5/apache2 ensure directory exist

Package apache2 install
Hooks

Post activate-zabbix

#!/bin/bash
set -ue

service apache2 restart


Package php5-pgsql install
Package zabbix-server-pgsql install
Package zabbix-frontend-php install

Quick Deployment
Advanced Deployment