How to install Zabbix
yum -y update
yum -y install httpd php php-cli php php-ctype php-bcmath php-xmlreader php-xmlwriter php-xmlwriterfping libcurl libiksemel net-snmp php-net-socket php-mbstring php-gettext mysql mysql-server mysql-devel.x86_64 php-mysql.x86_64 libxml2-devel.x86_64 libxml2.x86_64 libxml2-static.x86_64 net-snmp-devel.x86_64 net-snmp-libs.x86_64 net-snmp-utils.x86_64 libcurl-devel.x86_64 libcurl.x86_64 curl.x86_64 gd.x86_64 gd-progs.x86_64 php-gd.x86_64 gcc
tar -zxvf libxml2-2.9.2.tar.gz
/usr/bin/mysqladmin -u root -h infomon1 password ‘zarolocoasczx’
vi /etc/my.cnf ( bind = )
service mysqld restart
mysql -u root -p
mysql> create database zabbix character set utf8;
mysql> quit;
mysql -u root zabbix < database/mysql/schema.sql mysql -u root zabbix < database/mysql/images.sql mysql -u root zabbix < database/mysql/data.sql useradd -g zabbix -s /bin/false zabbix mkdir -p /var/log/zabbix chown zabbix /var/log/zabbix # CONIFGS /usr/local/etc/zabbix_agent.conf PidFile=/tmp/ LogFile=/var/log/zabbix/zabbix_agentd.log LogFileSize=1 DebugLevel=3 EnableRemoteCommands=1 LogRemoteCommands=1 Server= ListenPort=10050 Hostname=Zabbix Server ------------------------------------------- /usr/local/etc/zabbix_server.conf ListenPort=10051 LogFile=/var/log/zabbix/zabbix_server.log LogFileSize=2 PidFile=/tmp/ DBHost=localhost DBName=zabbix DBUser=zabbix DBPassword=1234 StartIPMIPollers=1 StartDiscoverers=5 Timeout=3 FpingLocation=/usr/bin/fping ------------------------------------------- Configurar o front do Zabbix em php.ini: /etc/php.ini date.timezone = America/Sao_Paulo memory_limit = 512M post_max_size = 60M upload_max_filesize = 32M max_execution_time = 600 max_input_time = 600 service httpd restart chkconfig httpd on chkconfig mysqld on ------------------------------------- Compile ./configure --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 make install ------------------------------------- mkdir /var/www/html/zabbix cp -R /frontends/php/* /var/www/html/zabbix/ chown -R apache:apache /var/www/html/zabbix/ cd /misc/init.d/fedora/core/ cp zabbix_agentd /etc/init.d cp zabbix_server /etc/init.d chmod +x /etc/init.d/zabbix_server /etc/init.d/zabbix_agentd /etc/init.d/zabbix_server start /etc/init.d/zabbix_agentd start Login to the web interface admin : zabbix

Tags: , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *