zabbix3.4源码安装步骤 (2)

cd /app/weblogic/software/httpd-2.2.23/bin
vim ../htdocs/index.php
<?php
phpinfo();
?>

./apachectl start
:8080/index.php
5.zabbix server端安装:我自己本机安装需要安装MySQL-dev
cd /app/weblogic/software/zabbix_setup/zabbix-3.4.10
./configure --prefix=http://www.likecs.com/app/weblogic/software/zabbix3.4 --enable-server --enable-java --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2

make
make isntall
6.配置server端,主要配置日志路径和数据库相关
建立相关的目录:
mkdir /app/weblogic/software/zabbix3.4/log/
mkdir /app/weblogic/software/zabbix3.4/SocketDir
mkdir /app/weblogic/software/zabbix3.4/SNMPTrapperFile/
mkdir /app/weblogic/software/zabbix3.4/alertscripts
mkdir /app/weblogic/software/zabbix3.4/externalscripts
配置文件:
LogFile=http://www.likecs.com/app/weblogic/software/zabbix3.4/log/zabbix_server.log
LogFileSize=0
PidFile=http://www.likecs.com/app/weblogic/software/zabbix3.4/zabbix_server.pid
SocketDir=http://www.likecs.com/app/weblogic/software/zabbix3.4/SocketDir
DBHost=192.168.99.2
DBPort=3306
DBName=zabbix
DBUser=root
DBPassword=jack
SNMPTrapperFile=http://www.likecs.com/app/weblogic/software/zabbix3.4/SNMPTrapperFile/zabbix_traps.tmp
Timeout=4
AlertScriptsPath=http://www.likecs.com/app/weblogic/software/zabbix3.4/alertscripts
ExternalScripts=http://www.likecs.com/app/weblogic/software/zabbix3.4/externalscripts
LogSlowQueries=3000


7.配置php:
cd /app/weblogic/software/httpd-2.2.23/htdocs
mkdir zabbix
cd /app/weblogic/software/zabbix_setup/zabbix-3.4.10/frontends/php
cp -r * /app/weblogic/software/httpd-2.2.23/htdocs/zabbix/
cd /app/weblogic/software/php-5.6.33/lib
vim php.ini
max_execution_time = 300
max_input_time = 300
session.auto_start = 0
mbstring.func_overload = 0
always_populate_raw_post_data = -1
date.timezone =Asia/Shanghai

8.界面配置:
Admin/zabbix
语言选择支持中文
9.agent安装:
cd /app/weblogic/zabbix-3.4.10
./configure --prefix=http://www.likecs.com/home/monitor/zabbix_agent --enable-agent
make
make install
/home/monitor/software/httpd-2.2.23/bin/zabbix_agent/sbin
./zabbix_agentd -c ../etc/zabbix_agentd.conf
配置:
/home/monitor/zabbix_agent/log
PidFile=http://www.likecs.com/home/monitor/zabbix_agent/zabbix_agentd.pid
LogFile=http://www.likecs.com/home/monitor/zabbix_agent/log/zabbix_agentd.log
PidFile=http://www.likecs.com/home/monitor/zabbix-agent/zabbix_agentd.pid
LogFile= /home/monitor/zabbix-agent/logs/zabbix_agentd.log
Hostname=JacK2
Include=http://www.likecs.com/home/monitor/zabbix-agent/etc/zabbix_agentd.conf.d/
Include=http://www.likecs.com/home/monitor/zabbix-agent/etc/zabbix_agentd.conf.d/*.conf
:8080/zabbix/zabbix.php?action=dashboard.view&ddreset=1
测试命令 zabbix_get -s 22.224.9.228 10050 -k "system.cpu.load[all,avg1]"

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wpfdgg.html