安全运维笔记


zabbix使用教程

<p>[TOC]</p> <pre><code> zabbix使用教程</code></pre> <p>1.安装教程:<a href="http://9527edu.org/">http://9527edu.org/</a> 2.自定义监控项:<a href="http://9527edu.org/">http://9527edu.org/</a> 3.自定义触发器:<a href="http://9527edu.org/">http://9527edu.org/</a> 4.微信报警。 (1)准备告警脚本:zabbix.py<a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/4d77362e403ca89de1f017d5ed3c0c4e" title="[zabbix.py">zabbix.py</a> 注意要脚本得模式改为unix如果在windows打开过去得话 (2)更改脚本里面得企业微信参数cropid,appsecret,agentid (3)把脚本放在:/usr/lib/zabbix/alertscripts目录下 给执行权限chmod a+x zabbix.py (4).设置发送方式: <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/27109dfe452e67879e1c7d70fae60434" alt="" /> (5)设置接收人 <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/17f2fc16e385360aecb9286cfdd08a94" alt="" /> <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/62e6ddd1a8bae5866f2c4934d3982288" alt="" /> (6)设置报警格式 <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/52785a0e525ca50c02cb312793456b17" alt="" /> 5.grafana自定义图形 (1)安装grafanna(要安装最新版本) 下载地址:<a href="https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm">https://mirrors.tuna.tsinghua.edu.cn/grafana/yum/rpm</a> yum localinstall grafana-6.3.3-1.x86_64.rpm systemctl start grafana-server.service systemctl enable grafana-server.service 访问 <a href="http://IP:3000(admin,admin">http://IP:3000(admin,admin</a>) (2)安装zabbix插件 grafana-cli plugins install alexanderzobnin-zabbix-app systemctl restart grafana-server.service 去grafan界面开启enable (3)添加数据源 <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/8aaca1e9e6ba4fad54c567440c729806" alt="" /> 6.对接设备SNMP 设备开启snmp服务,并设置读写密码: <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/610fce919b5f0dce9f295370cc4ae93f" alt="" /> 2.ManageEngine_MibBrowser工具打开MIB库获取OID<a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/8b5ffe373d79f969bababecacdcfab64" title="[pconline1538085885446.zip">pconline1538085885446.zip</a> 3.zabbix创建主机 <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/2b813b8840bd67f562187432fd747823" alt="" /> 4.添加一个默认模板 <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/f7048110801d3a0c4e576529a56092dc" alt="" /> 5.更改继承与主机宏(与读写密码一致) <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/66e8204182277f072b103fad489824ea" alt="" /> 6.创建监控项 <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/fc1549417100b7b5ffbe1d42927ea724" alt="" /> 注意:在服务测试数据接收时: 是zabbix接收到的数据后面要加个.0 snmpget -v 2c -c security123 10.210.0.243 .1.3.6.1.4.1.2021.4.17.1.0 是zabbix server服务器上面接收到的数据 snmpwalk -v 2c -c security123 10.210.0.243 .1.3.6.1.4.1.2021.9.1.9 7.web监测 <a href="https://www.cnblogs.com/daofaziran/p/12427952.html">https://www.cnblogs.com/daofaziran/p/12427952.html</a></p>

页面列表

ITEM_HTML