Detection of water leaks. Another integration of ZABBIX and BOLID

Water leaks and flooding are often a serious problem. In this regard, it becomes necessary to organize monitoring, which could provide early detection of water leaks.





Setting a task for a monitoring system: a web interface with information about the status of all system elements, notifying technical personnel about events that have occurred, for example, by e-mail or Telegram messenger, issuing light and sound signals in control rooms.





My experience in building such a system is described below.





Block diagram and equipment

It was decided to build the monitoring on the basis of Orion ISO devices from the Bolid NVP. At the top level use ZABBIX.





Available information on the integration of ZABBIX and Bolid equipment is given in the article on habr written by little-brother . The same article will help when you first get acquainted with the equipment and set up Bolid fixtures.





The block diagram of the system looks like this.





Field equipment

Both wired and wireless detectors are used to detect water leaks from water pipes and generate an addressable notification.





  • Addressable flooding sensor S2000-DZ.





  • Radio channel addressable flooding sensor S2000R-DZ





Average level

2000- 2000-32.





Zabbix , «», «2000–», «-Master» ( P1 ). , Zabbix «2000–» Ethernet- MOXA NPORT 5150, TCP Server Mode, .. Zabbix «2000–» MODBUS RTU Over TCP.





Zabbix Monitoring Modbus (TCP, RTU and "RTU over TCP").





Zabbix MODBUS . . - MODBUS RTU Over TCP , , MOXA MGATE MB3180 MODBUS TCP.





Zabbix 5.2.0 . Zabbix Modbus RTU, Modbus ASCII Modbus TCP. , Modbus RTU Over TCP .





Modbus TCP .





- IP- RODOS-8. .





Zabbix

, Zabbix "". Zabbix , , 2000- 2000-, - .





"2000-". . 1.32





, . Zabbix . 2000-, 2000-, 2000-, 2000-32, 2000-.





2000-





2000-





2000-





2000-32





2000-





""

"" . .





, .





2000-

2000-, 2000- 2000-32 2000-, .





2000- 2000-

"" UPROG









17 -













+





" " " ".









+





"", ().









5 c





, " ", " ".









0





, " ".









+





.





2000-, 2000-





2000-32

2000-32 .









5 -













+





"", 15 "".









+





"" "" .









+





"", ()









+













1 c





, " ", " "









+





.





2000-32





2000-

«2000-» «». , , «2000-».





«2000-». - Modbus UID «2000-».





, , .





№ Modbus - , . , Modbus №1 = 40000, №2 = 400001 ..





- 2000-.





- 2000- 0, 2000-.





- 1 2000-, 2000-32, 2000- 3 2000-.





MOXA

Ethernet. IP DHCP , .





Network Settings





, TCP Server Mode, Local TCP port 4001, Max connection 1.





Operating Settings





, C2000- Modbus RTU.





Serial Settings





IP- RODOS-8

, , . , , . Setup->Relay config - .





IP-





, "". , .





{$MODBUS_PORT} - , ip Moxa NPort 5150. , enc://192.168.0.164:4001, enc Modbus RTU Over TCP.





{$MODBUS_SLAVE} - Modbus UID 2000-, Moxa NPort 5150.





{$MODBUS_REG} - 2000-, .





{$NODATA_PERIOD} - Modbus , , MODBUS





UProg and Zabbix cheatsheet
UProg Zabbix cheatsheet
C2000-





IP- Moxa . Templates/Modules/ICMP Ping





: . : elegram .





, , , .





Telegram . , IP-, UDP . /usr/lib/zabbix/alertscripts/rodos8.sh :





#!/bin/bash
user=admin
password=admin
host=127.0.0.1
echo -n "${1:-$user} ${2:$password} k1=2" > /dev/udp/${3:-$host}/8283
      
      



/etc/zabbix/zabbix_server.conf AlertScriptsPath /usr/lib/zabbix/alertscripts Zabbix.





, .





.





. , .





, IP-. : , "" - "" .





Zabbix, . , , .





- -> . , , -> .





, , . .





. . , Zabbix .





, . , .








All Articles