Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos6.5 install zabbix3

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. Install PHP

The minimum requirement for PHP in Zabbix 3.0 is 5.4.The default is 5.3.3, which does not meet the requirements at all. Therefore, it is necessary to use third-party sources to upgrade PHP to more than 5.4.Note, PHP7 is not supported

Rpm-ivh http://repo.webtatic.com/yum/el6/latest.rpmyum install php56w php56w-gd php56w-mysql php56w-bcmath php56w-mbstring php56w-xml php56w-ldapvim / etc/php.inidate.timezone = Asia/Shanghaipost_max_size = 32Mmax_execution_time = 300max_input_time = 300always_populate_raw_post_data =-12. Install MySQL

MySQL recommends version 5.6, and CentOS6 defaults to 5.1. it is not recommended, and the performance is on the low side.

Rpm-ivh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpmyum install-y mysql-server mysql-devel vim / etc/my.cnf [mysqld] innodb_file_per_table # Independent tablespace schema service mysqld start mysql_secure_installation # MySQL Security configuration Wizard Enter current password for root (enter for none): click "Create Host" in the upper right corner where host name and visible name are customized. You can select groups. Default is here. Ip address writes client ip

Configure the monitoring project template: click "templates", click add, select Template OS Linux in the pop-up window, then click select, and finally click save

Check the log on the client: less / var/log/zabbix/zabbix_agentd.log

Server log: tail / tmp/zabbix_server.log

Error message:

Open a web page to display zabbix is not running

Check that the database is not connected, tail / tmp/zabbix_server.log (view zabbix server log)

Create a new database user, restart the database, and then check the log

Vi / var/www/html/zabbix/conf/zabbix.conf.php

Configure to send email:

Install sendmail

Rpm-qa | grep sendmail

Yum install-y sendmail* installation

The mail command uses yum install-y mailx*

Service sendmail start

Check to see if the port is up

I haven't even rebooted the installation here.

Echo "$3" | / bin/mail-s "$2" $1

View the log file:

Tail / var/log/maillog

Configure to send email

Yum install-y sendmail

Mkdir-p / home/zabbix/bin

Vim / home/zabbix/bin/baojing.sh / / content:

#! / bin/bash

Echo "$3" | / bin/mail-s "$2" $1

Chmod + x / home/zabbix/bin/baojing.sh

Vim / etc/zabbix/zabbix_server.conf

In the zabbix_server.conf configuration file, there are parameters AlertScriptsPath and ExternalScripts (modified to the following)

AlertScriptsPath=/home/zabbix/bin/-user-defined media types script

ExternalScripts=/home/zabbix/bin/-user-defined check script (item)

Create a mediea types:

"Administration"-> "Media types", click "Create Media Type" in the upper right corner, where Description fill in "baojing" or other custom name, Type select "Script", Script fill in "baojing.sh" and then click "Save".

Create a user:

"Adimistration"-> "Users" is in the upper right corner, select "Users", click "Create User", alias: test1, Custom name and lastname password:123456;group Select guest, go back to the above, click media,type, select baojing,send to to write to the mailbox to send, click add, and finally click save.

Create an action:

"configuration"-- > actions, "Create Actions" in the upper right corner, Name customization, I write "baojing" here, other defaults, then click the "New" button under "Operations" on the right, "Operation Type" select "Send message", "Send Message to" select one or more user groups to send messages, Send to Users select the test1 we added earlier, "Send only to" select baojing, click add.

Last point: save

Create a new monitoring item:

The following is the calculation of traffic per second

Automatic eh0 monitors total traffic from boot to present

Error message:

Copy fonts from windosw to linux server

Find the font under disk C-windows-Fonts and upload it to the linux server for replacement

DejaVuSans.ttf

Finally, create a new trigger

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report