黑科技:基于Arduino和Zabbix实现温湿度监控告警
Black technology: temperature and humidity monitoring and alarm based on Arduino and Zabbix
2
Project description
01 工作原理 02 准备材料 选择以Arduino主板为基础,搭配温湿传感器,最后通过zabbix_sender将值发送到Zabbix Server,通过Zabbix进行存储、分析、告警,Grafana作为可视化展示。在开始之前需要准备一下材料: arduino uno主板 *1 arduino uno w5100 网络组件 *1 DHT11传感器*1 Arduino-sender的代码,下载地址:https://gitee.com/ltslts/zabbix-trapper-arduino Arduino IDE编译软件,下载地址:https://www.arduino.cc/ 03 Ardunio配置 代码编译 Arduino使用的c代码编程,在上面的地址下载以后,使用官方提供的IDE打开,在Windows平台编译。编译完成以后,arduino通过usb连接到pc,设置好串口号,就可以把代码烧写到arduino中。下图把代码中需要修改的地方做了标注: 硬件连接 调试验证 在IDE界面,点击这里,打开调试信息界面: 将Arduino接上网线,Arduino会自动DHCP获取到ip,当看到调试框中有获取到的这些信息的时候,说明arduino设置完成。 04 Zabbix配置 添加主机 添加监控项 验证 ————————————————…
Keep reading with a free account
Guests can read 15 projects per visit. Log in or create a free account to read the full description, open the documents and join the comments.