【原创】运维基础之Zabbix(1)简介、安装、使用

zabbix 4

官方:https://www.zabbix.com/

一 简介

Monitor anything
Solutions for any kind of IT infrastructure, services, applications, resources

监控一切

Enterprise-ready
Mature, enterprise-level platform to monitor large-scale IT environments

成熟的企业级监控平台

Zabbix is an enterprise-class open source distributed monitoring solution.

zabbix是一个开源的分布式的企业级监控方案;

Zabbix is software that monitors numerous parameters of a network and the health and integrity of servers. Zabbix uses a flexible notification mechanism that allows users to configure e-mail based alerts for virtually any event. This allows a fast reaction to server problems. Zabbix offers excellent reporting and data visualisation features based on the stored data. This makes Zabbix ideal for capacity planning.

Zabbix supports both polling and trapping. All Zabbix reports and statistics, as well as configuration parameters, are accessed through a web-based frontend. A web-based frontend ensures that the status of your network and the health of your servers can be assessed from any location. Properly configured, Zabbix can play an important role in monitoring IT infrastructure. This is equally true for small organisations with a few servers and for large companies with a multitude of servers.

角色

1 Server (zabbix-server)

Zabbix server is the central component to which agents report availability and integrity information and statistics. The server is the central repository in which all configuration, statistical and operational data are stored.

2 Agent (zabbix-agent)

Zabbix agents are deployed on monitoring targets to actively monitor local resources and applications and report the gathered data to Zabbix server.

3 Database storage (mysql)

All configuration information as well as the data gathered by Zabbix is stored in a database.

4 Web interface (httpd)

For an easy access to Zabbix from anywhere and from any platform, the web-based interface is provided. The interface is part of Zabbix server, and usually (but not necessarily) runs on the same physical machine as the one running the server.

5 Proxy(可选)

Zabbix proxy can collect performance and availability data on behalf of Zabbix server. A proxy is an optional part of Zabbix deployment; however, it may be very beneficial to distribute the load of a single Zabbix server.

二 安装

1 yum安装

# rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm

agent安装
# yum install zabbix-agent

server安装
# yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent

2 初始化db

mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@‘%‘ identified by ‘password‘;

# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -h$ip -uzabbix -p zabbix

3 启动server

# vi /etc/zabbix/zabbix_server.conf
DBHost=$ip
DBPassword=password

# vi /etc/httpd/conf.d/zabbix.conf
php_value date.timezone Asia/Shanghai

# systemctl restart zabbix-server httpd
# systemctl enable zabbix-server httpd

4 启动agent

# vi /etc/zabbix/zabbix_agentd.conf
Server=$server_ip
ServerActive=$server_ip

# systemctl restart zabbix-agent
# systemctl enable zabbix-agent

参考:https://www.zabbix.com/download?zabbix=4.0&os_distribution=centos&os_version=7&db=mysql

三 使用

访问 http://$server_ip/zabbix 进入设置向导

设置db

设置完成之后

默认用户密码:Admin/zabbix

ps:如果登录之后发现zabbix server is not running,10051端口也没有绑定,极有可能是是连接db不通;

参考:https://www.zabbix.com/documentation/4.0/manual/installation/install#installing_frontend

添加host,设置template之后,就可以看到效果了

In addition it is important to take a step back and have a look at the overall data flow within Zabbix. In order to create an item that gathers data you must first create a host. Moving to the other end of the Zabbix spectrum you must first have an item to create a trigger. You must have a trigger to create an action. Thus if you want to receive an alert that your CPU load it too high on Server X you must first create a host entry for Server X followed by an item for monitoring its CPU, then a trigger which activates if the CPU is too high, followed by an action which sends you an email. While that may seem like a lot of steps, with the use of templating it really isn‘t. However, due to this design it is possible to create a very flexible setup.

使用帮助:https://www.zabbix.com/documentation/4.0/manual/quickstart

关于java gateway

It is required to install Java gateway only if you want to monitor JMX applications. Java gateway is lightweight and does not require a database.

原文地址:https://www.cnblogs.com/barneywill/p/10380622.html

时间: 2024-11-12 20:43:56

【原创】运维基础之Zabbix(1)简介、安装、使用的相关文章

监控和安全运维 1.8 zabbix服务端安装

1. Zabbix简介基于web的开源软件,开源监控系统状态也可以监控网络设备.和nagios不同的是zabbix会把获取的数据保存在数据库中,所以zabbix需要有数据库支持 Zabbix还可以自动发现主机和网络设备支持邮件和短信告警Zabbix大多配置都可以在web界面配置完成官网http://www.zabbix.com/ 2. 安装zabbix rpm -ivh http://www.lishiming.net/data/attachment/forum/month_1211/epel-

linux云自动化运维基础知识13(软件安装)

####1.软件名称识别####[abrt-addon-ccpp]-[2.1.11-19].[el7].[x86_64].rpm    ##rpm结尾的适用与redhat操作系统       ||         ||         ||       ||    软件名称       软件版本 软件适用系统 64位 ####2.如何安装软件####1.rpmrpm    -ivh    name.rpm    ##安装 ,-v显示过程,-h指定加密方式为hash    -e    name  

自动化运维系列之Ansible的简介与安装【持续更新···】

自动化运维系列之Ansible的简介与安装 自动化运维工具简介 由于互联网的快速发展导致产品更新换代的速度逐渐加快,这就导致运维人员的日常工作会大大增加,如果还是按照传统方式进行维护工作会使工作效率低下.此时,就需要部署自动化运维了,自动化运维会尽可能安全.高效的完成运维人员的日常工作. 自动化运维工具划分为两类:一类是需要使用代理工具的,也就是基于专用的Agent程序来完成管理功能,如:Puppet.Func.Zabbix等:另一类是不需要配置代理工具的,可以直接基于SSH服务来完成管理功能,

linux运维基础知识-CentOS7系统安装配置及健康检查

linux运维基础知识 1.完成一台CentOS7.X操作系统安装,分区并配置逻辑卷:2.完成LVM分区扩容20GB存储:3.检查系统CPU/内存/网络/存储性能检查:4.检查操作系统版本:5.检查系统是否有非法账号:6.检查系统日志是否有相关报错:7.检查系统后台是否有非法应用运行: 一:系统安装及配置LVM逻辑卷 1:系统安装(略) 2:分区及配置逻辑卷 LVM简介:逻辑卷管理器(LogicalVolumeManager)本质上是一个虚拟设备驱动,是在内核中块设备和物理设备之间添加的一个新的

Linux运维基础命令笔试题--看看你会多少?

老男孩Linux运维基础2728期课后学习效果上机闭卷考试题详解 http://edu.51cto.com/course/course_id-5577.html 如果你觉得不错,请为他点赞和评价.这样可以激发他更强的回报小伙伴的欲望!   老男孩教育linux运维就业班第一周课后学习效果能力上机大考察 (每题10分共130分,过100即可,请给出详细步骤) 1.创建目录/data/oldboy ,并且在该目录下创建文件oldboy.txt,然后在文件oldboy.txt里写入内容"inet ad

自动化运维工具之Zabbix分布式监控应用(五)

分布式监控概述proxy and nodeZabbix常用3种架构-->Server-agent-->Server-Node-agent-->Server-Proxy-agent Zabbix能高效地监控分布式IT架构在大型环境中Zabbix提供两种解决方案-->使用代理(proxy)-->使用节点(node)Proxy or Node?-->代理(proxy)用于本区域数据收集,并将数据发送给server-->节点(node)提供完整的Zabbix server

网络配置——Linux运维基础

今天把Linux的网络配置总结了一下,尽管并不难可是是个比較重要的基础.然后我也不知到自己以后是否会做运维,可是我知道自己比較喜欢刨根问底.还有就是我很珍惜我以前掌握过的这些运维的技能.今天突然间问自己,Linux网络配置的那个文件路径是什么.突然间小心脏又绷紧了,我发现记忆已经開始模糊了.尽管陆续有把之前运维的笔记整理上来,可是每次都有种写遗书的淡淡地忧伤在里面.突然间又想暴粗口了..... 一.网络基本配置 首先就是/etc/sysconfig/network-scripts/ifcfg-e

TimesTen修改CacheGroup管理用户在ORACLE端及TT端密码【TimesTen运维基础】

密码管理一直是运维中安全管理的一部分,CacheGroup管理用户密码的修改虽然不复杂,但是对于生产来说,修改不完善比较容易引发故障.这里介绍一下CacheGroup管理用户密码的修改,便于入门的兄弟学习. 1.在主备节点修改sys.odbc.ini配置文件 $ cd $TT_HOME/info $ vi sys.odbc.ini [$DSN] OracleNetServiceName=ORA11G OraclePWD=cgpasswd        ##此处即修改后的密码 2.停掉主备节点Ca

写给自己看的Linux运维基础(四) - python环境

pip - Python包管理工具 https://pip.pypa.io/en/latest/installing.html wget https://bootstrap.pypa.io/get-pip.py python get-pip.py Redis (NoSQL) http://www.redis.io/download wget http://download.redis.io/releases/redis-2.8.13.tar.gz tar xzf redis-2.8.13.tar