learning of zabbix 3.2.3
来源:互联网 发布:linux ftp上传文件夹 编辑:程序博客网 时间:2024/05/21 15:03
(一)安装与部署 (下)
2.安装zabbix-agentd
#! /bin/bashmyPath="/opt/package/"myFile="/opt/package/zabbix-3.2.3.tar.gz"if [! -d "$myPath"];thenmkdir "$myPath"fiif [! -f "$myFile"];thenwget https://sourceforge.net/projects/zabbix/files/ZABBIX%20Latest%20Stable/3.2.3/zabbix-3.2.3.tar.gz/downloadficd $myPathtar zxvf zabbix-3.2.3.tar.gzcd zabbix-3.2.3./configure --prefix=/usr/local/zabbix --enable-agentmake&& make installcp misc/init.d/fedora/core/zabbix_agentd /etc/init.d/mkdir -p /usr/local/zabbix/logsgroupadd zabbixuseradd -g zabbix zabbixchown -R zabbix:zabbix /usr/local/zabbix/##配置开机启动chkconfig --add zabbix_agentdchkconfig zabbix_agentd onsed -i ' s/BASEDIR=\/usr\/local/BASEDIR=\/usr\/local\/zabbix/' /etc/init.d/zabbix_agentdsed -i ' s/PIDFILE=\/tmp\/$BINARY_NAME.pid/PIDFILE=\/usr\/local\/zabbix\/logs\/$BINARY_NAME.pid/' /etc/init.d/zabbix_agentd##配置zabbix_agentd.confsed -i '/^# PidFile/ s/# PidFile/PidFile/' /usr/local/zabbix/etc/zabbix_agentd.conf sed -i '/^LogFile/ s/tmp\/zabbix_agentd.log/usr\/local\/zabbix\/logs\/zabbix_agentd.log/' /usr/local/zabbix/etc/zabbix_agentd.confsed -i 's/Server=127.0.0.1/Server=172.18.3.184/' /usr/local/zabbix/etc/zabbix_agentd.confsed -i '/# ListenPort=10050/a\ListenPort=10050' /usr/local/zabbix/etc/zabbix_agentd.confsed -i 's/ServerActive=127.0.0.1/ServerActive=172.18.3.184/' /usr/local/zabbix/etc/zabbix_agentd.confsed -i 's/Hostname=Zabbix server/Hostname=172.18.3.179/' /usr/local/zabbix/etc/zabbix_agentd.confsed -i '/# Timeout=3/a\Timeout=15' /usr/local/zabbix/etc/zabbix_agentd.confsed -i '/# Include=/a\Include=\/usr\/local\/zabbix\/etc\/zabbix_agentd.conf.d\/*.conf/' /usr/local/zabbix/etc/zabbix_agentd.conf
0 0
- learning of zabbix 3.2.3
- learning of zabbix 3.2.3
- learning of zabbix 3.2.3
- learning of zabbix 3.2.3 之nginx
- learning of zabbix 3.2.3 邮件报警
- learning of zabbix 3.2.3 discovory 自动监控端口
- zabbix-3.2.3安装
- Learning OpenGL : (1) Concept of 3D
- 机器学习基石-3-Types of Learning
- zabbix报警Lack of free swap space on zabbix
- Beginning of Learning LISP.
- Learning life of Tibco
- website of learning English!
- Method of learning English?
- The revolution of learning
- books of machine learning
- type of machine learning
- Remap of Holistic learning
- 一步步手动构建小于10M的类嵌入式Linux系统
- Ext Controller与ViewController的区别详解
- maven插件mybatis-generator生成代码配置
- linux服务器硬件资源指标、jvm监控 、存储数据库、redis监控
- ubuntu install Python psutil模块报错
- learning of zabbix 3.2.3
- httpd 2.4.4 + mysql-5.5.28 + php-5.4.13编译安装
- 微软官方的SQLHelper类(含完整中文注释)
- 使用python编写udp协议的ping程序
- 线程相关
- Swift for循环
- Java实例-for循环打印各种图形
- 慕课网Linux 达人养成计划 I 学习笔记(二)
- Java技术----Java泛型详解