知识库

标准化实施手册及常见错误


linux系统部署zabbix客户端

<h2>1.安装zabbix_agentd</h2> <ul> <li> <p><strong>将安装包、安装脚本和服务文件放在同一路径下</strong></p> <h3>[点击下载zabbix安装包及脚本](<a href="http://101.69.243.254:5010/share/t0tkf8KO">http://101.69.243.254:5010/share/t0tkf8KO</a> &quot;点击下载zabbix安装包&quot;)</h3> </li> <li> <p><strong>给脚本执行权限:</strong> <code>chmod +x zabbix_agent.sh</code></p> </li> <li> <p><strong>默认安装到:</strong><code>/risen/soft/zabbix_agent</code>(可自行修改脚本中的目录,保持格式不变) <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/65465593700b9d6f76da304a8b59f535" alt="" /></p> </li> <li> <p><strong>确认后,执行脚本安装:</strong> <code>sh zabbix_agent.sh</code></p> </li> <li><strong>编译报错:fatal error: pcre.h: No such file or directory,则安装以下依赖</strong> ubuntu/debian操作系统:<code>apt-get install libpcre3 libpcre3-dev</code> centos/redhat操作系统:<code>yum install pcre-devel</code> 注:使用脚本前需要确认服务器有gcc和pcre(不会查看自行百度) <h2>2.配置服务端ip和客户端hostname (其它参数脚本已自动配置)</h2></li> <li> <p><strong>安装过程中会提示输入服务端ip地址</strong> <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/eeeedd22e4027b0839bb651c9feba968" alt="" /> 将其配置为zabbix服务端的ip: 域名(<code>zabbix.risencn.com</code> )外网(<code>60.191.64.3</code>) 注:优先使用域名,域名不可达则使用公网ip <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/6449a8528f1405ed611b9301761289e9" alt="" /></p> </li> <li> <p><strong>设置服务器客户端主机名</strong> <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/4d46b21a48190601e24567127e447cca" alt="" /> 主机名称对应agent中的Hostname格式为:省级_市级_区县_项目_项目应用[可扩展]</p> <pre><code>例: 该例子为浙江省杭州市拱墅区城管局oa项目的服务器:zjs_hzs_gsq_cgj_oa1 该例子为浙江省杭州市城管局oa项目的服务器:zjs_hzs_cgj_oa1 该例子为浙江省城管局oa项目的服务器:zjs_cgj_oa1</code></pre> </li> <li><strong>安装完成,服务启动,脚本已设置开机自启</strong> <img src="http://60.191.64.5:16100/server/index.php?s=/api/attachment/visitFile/sign/461e07d3d9f04761aaa16430ff132775" alt="" /></li> </ul> <h2>3.基本命令</h2> <ul> <li> <p><strong>启动zabbix服务</strong> <code>systemctl start zabbix_agentd.service</code></p> </li> <li> <p><strong>停止zabbix服务</strong> <code>systemctl stop zabbix_agentd.service</code></p> </li> <li><strong>查看agent状态</strong> <code>systemctl status zabbix_agentd.service</code></li> </ul>

页面列表

ITEM_HTML