Zabbix-server post-Installation fault handling and zabbix-agent configuration add process

Source: Internet
Author: User
Tags snmp

Zabbix-server post-Installation fault handling and zabbix-agent configuration add process

Fault Handling

In the first case, if the Web interface is prompted with the correct configuration of other parameters (Iptables, SELinux, etc.), such as:

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/78/0C/wKioL1Z07gSgrUvsAAC6P2ObuUM654.png "title=" capture. PNG1. PNG "alt=" Wkiol1z07gsgruvsaac6p2obuum654.png "/>

If you are unable to connect, go to the system where Zabbix-server is located and test with Telnet.

[[Email protected] conf]# telnet localhost 10051Trying:: 1...telnet:connect to Address:: 1:connection refusedtrying 127. 0.0.1...telnet:connect to address 127.0.0.1:connection refusedtrying 192.168.2.101 ... [Email protected] conf]# telnet 127.0.0.1 10051Trying 127.0.0.1 ...

It is not possible to see the 10051 port on localhost, at which point you can make the following adjustments.

[Email protected] conf]#/usr/share/zabbix/conf/zabbix.conf.php #官方RPM安装的PHP代码文件位置 $ZBX _server = ' loc                     Alhost '; #修改此参数

Change localhost to 127.0.0.1.

Second case: The database Mysql.sock file could not be found for an issue

Make sure the/var/lib/mysql/mysql.sock exists and if it does not, modify the Dbsocket configuration in the/etc/zabbix/zabbix_server.conf.

Dbsocket=/var/lib/mysql/mysql.sock

Note: After modifying the path to Mysql.sock actually exists, restart the service.

Third case: Database cannot connect prompt

There are three workarounds: check whether the database service is healthy, whether the firewall is allowed, or if the permissions are accessible.


Zabbix-agent the configuration Add process

    1. Installing Zabbix-agent

      In the previous article, I introduced Zabbix can adopt the Agent/server architecture, the client's collection method is divided into agent, SNMP, etc., here first to learn to use Agent to monitor the server, I will be on other monitoring methods (SNMP, JMX, IPMI) is described in detail below, which describes how zabbix-agent is installed manually.

      The client is still installed in rpm (install Zabbix's official Yum source).

[[email protected] conf]# rpm-ivh[[email protected] conf]# yum–y install Zabbix zabbix-agent

2. Configuration of the firewall

The setup statements for the firewall are as follows.

#vim/etc/sysconfig/iptables-a input–m State--state new–m tcp–p TCP--dport 10050-j accept-a output–m State-- State new–m tcp–p TCP--dport 10051-j ACCEPT #service iptables restart

3. Configure zabbix_agent.conf

The default configuration parameters are as follows.

#vim/etc/zabbix/zabbix-agent.confserver=x.x.x.x Zabbix-server's iphostname=xxx.xxx.xxx.xxx monitored host address

An agent can send data to multiple servers at the same time, with multiple IPs separated by commas.

#service zabbix-agent restartchkconfig zabbix-agent onchkconfig iptables on
So far, the work on the Zabbix-agent host has been configured, and the next step is to add the monitored host to the Zabbix-server Web management interface.



















This article from "Caramel Daddy" blog, reprint please contact the author!

Zabbix-server post-Installation fault handling and zabbix-agent configuration add process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.