搭建zabbix3.4.8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | server { listen 80; server_name 192.168.10.100; charset utf-8; root /var/www/; index index.php; location ~* /\.ht { deny all; } location ~* /(api|conf|include)/ { rewrite ^/(.*)$ http://192.168.10.100/index.php permanent; } location ~ \.php$ { include /etc/nginx/fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param QUERY_STRING $query_string; fastcgi_pass 127.0.0.1:9000; fastcgi_intercept_errors on; error_page 403 404 502 503 504 http://192.168.10.100/index.php; } location ~* \.(css|gif|jpeg|jpg|js|txt|png|tif|tiff|ico|jng|bmp|doc|pdf|rtf|xls|xpi|zip|tgz|gz|bz2|tar|mid|midi|mp3)$ { root /var/www/; } } |
- NTP服務器(上海) :ntp.api.bz
- 中國ntp服務器:cn.pool.ntp.org
- pool.ntp.org
安裝
#rpm -ivh zabbix-agent-3.4.8-1.el6.x86_64.rpm
#rpm -ivh zabbix-get-3.4.8-1.el6.x86_64.rpm
#rpm -ivh zabbix-sender-3.4.8-1.el6.x86_64.rpm
修改zabbix-agent.conf文件
#vim /etc/zabbix/zabbix_agentd.conf
Server=172.16.8.2 //監控端地址
Hostname=主機名 //被監控端主機名
#service zabbix-agent start
#chkconfig zabbix-agent on
安裝
rpm -ivh zabbix-agent-3.4.8-1.el6.x86_64.rpm
rpm -ivh zabbix-get-3.4.8-1.el6.x86_64.rpm
rpm -ivh zabbix-sender-3.4.8-1.el6.x86_64.rpm
service zabbix-agent start
chkconfig zabbix-agent on
編輯zabbix-agent配置文件
#vim /etc/zabbix/zabbix-agentd.conf
Server=172.16.8.2 //監控服務器的地址
ServerActive=172.16.8.2 //監控服務器的地址
Hostname=zabbix //必須是服務器的主機名
HostMetadataItem=system.uname //元數據
保存退出
元數據就相當於執行:zabbix_get -s node1 -k system.uname 命令
顯示信息如下所示:
Linux node1 2.6.32-573.el6.x86_64 #1 SMP Wed Jul 1 18:23:37 EDT 2015 x86_64
搭建zabbix3.4.8