监控软件zabbix之安装

1.搭建LAMP环境和安装系统依赖包

[[email protected] ~]# yum install gcc gcc-c++ crul crul-devel mysql mysql-server httpd php-gd php php-xml php-mbstring net-snmp snmp net-snmp-devel php-mysql php-bcmath -y

[[email protected] ~]# cd /etc/httpd/conf
[[email protected] conf]# vim httpd.conf

ServerName localhost

DirectoryIndex index.php index.html index.html.var

AddType application/x-httpd-php .php

[[email protected] conf]# vim /var/www/html/index.php

<?php
phpinfo();
?>

[[email protected] conf]# vim /etc/php.ini

date.timezone = "Asia/Shanghai"

[[email protected] conf]# /etc/init.d/httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd:                                            [  OK  ]
[[email protected] conf]# /etc/init.d/mysqld restart
Shutting down MySQL... SUCCESS!
Starting MySQL.. SUCCESS!
[[email protected] conf]#

测试:

2.下载安装zabbix软件

[[email protected] ~]# wgethttp://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.4.4/zabbix-2.4.4.tar.gz

[[email protected] ~]# tar xvf zabbix-2.4.4.tar.gz

[[email protected] ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.6.21-log MySQL Community Server (GPL)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

mysql> create database zabbix;
Query OK, 1 row affected (0.00 sec)

mysql> grant all privileges on zabbix.* to [email protected]‘localhost‘ identified by ‘system‘;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql>\u zabbix

mysql> source /root/zabbix-2.4.4/database/mysql/schema.sql;

mysql> source /root/zabbix-2.4.4/database/mysql/images.sql;

mysql> source /root/zabbix-2.4.4/database/mysql/data.sql;

mysql> exit
Bye

[[email protected] ~]# cd zabbix-2.4.4

[[email protected] zabbix-2.4.4]# ./configure  --prefix=/usr/local/zabbix-2.4.4 --enable-server --enable-agent --with-net-snmp --with-libcurl --enable-proxy --with-mysql=/usr/bin/mysql_config

[[email protected] zabbix-2.4.4]# make && make install

[[email protected] zabbix-2.4.4]# vim /etc/services

zabbix-agent    10050/tcp               # client
zabbix-agent    10050/udp               #
zabbix-trapper  10051/tcp               # server
zabbix-trapper  10051/udp               # server

[[email protected] zabbix-2.4.4]# cd /usr/local/zabbix-2.4.4/sbin/

[[email protected] sbin]# useradd -r -s /sbin/nologin -u 10050 zabbix

[[email protected] sbin]# vim ../etc/zabbix_server.conf

DBName=zabbix             --数据库名称

DBUser=zabbix               --数据库用户名

DBPassword=123456      --数据库密码

ListenIP=127.0.0.1          --数据库ip地址

[[email protected] sbin]# cp -a ~/zabbix-2.4.4/misc/init.d/tru64/zabbix_* /etc/init.d/

[[email protected] sbin]# chmod +x /etc/init.d/zabbix_agentd
[[email protected] sbin]# chmod +x /etc/init.d/zabbix_server

[[email protected] sbin]# vim /etc/init.d/zabbix_agentd

DAEMON=/usr/local/zabbix-2.4.4/sbin/zabbix_agentd

[[email protected] sbin]# vim /etc/init.d/zabbix_server

DAEMON=/usr/local/zabbix-2.4.4/sbin/zabbix_server

[[email protected] sbin]# /etc/init.d/zabbix_agentd start
Zabbix agent started.
[[email protected] sbin]# /etc/init.d/zabbix_server start
Zabbix server started.

[[email protected] sbin]# cp -a ~/zabbix-2.4.4/frontends/php /var/www/html/zabbix

[[email protected] sbin]# cd /var/www/html/

[[email protected] html]# chown -R apache:apache zabbix/

[[email protected] html]# vim /etc/php.ini

post_max_size = 16M

max_execution_time = 300

max_input_time = 300

[[email protected] html]#

图:

用户名:admin,密码:zabbix

 

时间: 2024-08-03 17:51:19

监控软件zabbix之安装的相关文章

分布式监控软件Zabbix

2.1 Zabbix简介 Zabbix是一个基于Web界面的,提供分布式系统监视以及网络监视功能的企业级的开源解决方案.Zabbix能监视各种网络参数,保证服务器的安全运营,并提供弹性的通知机制让系统管理员快速定位并解决存在的各种问题. 2.2 Zabbix架构 Zabbix由Zabbix Server与可选组件Zabbix Agent两部分构成: Zabbix Server可以通过SNMP.Zabbix agent.ping.端口监视等方法提供对远程服务器/网络状态的监视.数据收集等功能,可以

监控软件介绍、安装zabbix

一:监控软件介绍 cacti.nagios.zabbix.smokeping.open-falcon等等cacti.smokeping偏向于基础监控,成图非常漂亮cacti.nagios.zabbix服务端监控中心,需要php环境支持,其中zabbix和cacti都需要mysql作为数据存储,nagios不用存储历史数据,注重服务或者监控项的状态,zabbix会获取服务或者监控项目的数据,会把数据记录到数据库里,从而可以成图open-falcon为小米公司开发,开源后受到诸多大公司和运维工程师的

企业级开源监控软件zabbix

最快速的对一个开源软件有一定的认识和了解,最好的方法就是看官网介绍. ------付炜超 第一问:zabbix是什么? 答:Zabbix是专为监控的可用性和IT基础设施组件的性能极限的企业级软件,Zabbix是开源的,是在没有成本 第二问:zabbix可以干什么? 答:Zabbix它可以收集几乎无限的类型从网络数据.高性能实时监控意味着数以万计的服务器.虚拟机和网络设备可以同时监测.随着存储数据,可视化功能是可用的(概述.地图.图表.屏幕等),以及非常灵活的分析预警目的数据的方法. 第三问:为什

监控软件 zabbix

监控软件 监控软件:zabbix,nagios,cacti,ganglia 1).zabbix 定义:Zabbix 是一个基于 WEB 界面的提供分布式系统监视以及网络监视功能的企业级的开源解决方案. 性能:zabbix 能监视各种网络参数,保证服务器系统的安全运营;并提供灵活的通知机制以让系统管理员快速定位/解决存在的各种问题. 适用范围:支持设备多,自带多种监控模板 支持分布式集中管理,有自动发现功能,可以实现自动化监控 缺点:需在被监控主机上安装 agent,所有数据都存在数据库里, 产生

监控之zabbix的安装部署+警报的配置

主机环境  redhat6.5 64位 实验环境  服务端1 ip172.25.25.1   主机名:server1.example.com           服务端2 ip172.25.25.2   主机名:server2.example.com   安装包    alert-agent-4.1.3.1-linux-x64.tar.gz   fping-2.4b2-16.el6.x86_64.rpm   iksemel-1.4-2.el6.x86_64.rpm   iksemel-utils

监控软件nagios之安装

1.安装软件依赖包和创建nagios用户 [[email protected] ~]# yum install gcc gcc-c++ make -y [[email protected] ~]# groupadd -g 500 nagios[[email protected] ~]# useradd  -r -u 500 -s /sbin/nologin -g nagios nagios[[email protected] ~]# 2.安装apache和php环境 [[email protec

监控软件cacti之安装

1.安装系统依赖包和搭建LAMP环境 [[email protected] ~]# yum install rrdtool net-snmp net-snmp-libs net-snmp-utils -y [[email protected] ~]# yum install httpd php php-mysql php-snmp php-xml php-gd mysql-server mysql -y [[email protected] ~]# vim /etc/httpd/conf/htt

监控软件zabbix使用snmp协议

SNMP(简单网络管理协议),由一组网络管理的标准组成,包含一个应用层协议(application layer protocol).数据库模型(database schema)和一组资源对象. 在开源监控系统中主要针对硬件的监控,比如:交换机,路由器,打印机以及网络流量. 1.安装SNMP协议(zabbix已安装好) [[email protected] ~]# yum install net-snmp -y [[email protected] ~]# vim /etc/snmp/snmpd.

监控软件Zabbix之配置QQ邮箱报警机制

上篇讲解了Zabbix的安装与配置,本篇继续讲解如何配置邮件报警机制:本篇我就在此前zabbix服务端和客户端都已经配置好的基础上进行试验:在监控主机上进行配置: 1.使用yum安装mailx邮箱服务: * yum install mailx -y 2.安装完后在末行加入以下配置: * vim /etc/mail.rc #注意网易,QQ邮箱需要开启客户端授权码进行第三方登录 set [email protected] set smtp=smtp.qq.com set [email protect