
gittech. site
for different kinds of informations and explorations.
Zabbix-Live: PostgreSQL Notifications and WebSocket and Live Display
Published at
Dec 25, 2024
Main Article
Zabbix-live
Zabbix complementary system for live metric monitoring.
1. Zabbix
Database: Uses PostgreSQL to store monitoring data.
Triggers and Notifications: Zabbix monitors systems and generates triggers based on conditions. When triggers are activated, notifications are sent.
Channel: Notifications are published to a PostgreSQL channel named zabbix_live, enabling external components to listen for real-time updates.
2. NotifyHub
Technology: Built using Node.js.
Purpose: Acts as a bridge between Zabbix and the Web client. It listens to the zabbix_live channel from the Zabbix PostgreSQL database, processes the notifications, and forwards them in real time by discriminating monitored sensor item.
Communication: Sends updates to the Web component through WebSockets.
3. Web
Technology: Developed using Next.js, providing both backend and frontend functionalities.
Backend: Processes incoming WebSocket messages from NotifyHub and manages additional API requests or database queries, if needed.
Frontend: Displays real-time data to users, received from the backend. Simpla dashboard creation.
Installation
Install Zabbix Postgresql Components README
Install Notifyhub server README
Install Zabbix-live Web Server README
Screenshots
TODO
Pie chart[06.01.2025]Multiple Item Selection - individual charts
Multiple Item Selection - combined chart[06.01.2025]Network map display