52 Commits

Author SHA1 Message Date
b7433f0c99 chore(config): unify timezone setting using TZ environment variable
All checks were successful
Build and Push Docker Images / build (push) Successful in 47s
Replaced multiple timezone definitions with a single environment variable `TZ` to centralize and simplify timezone configuration across the project.

Signed-off-by: UdoChudo <stream@udochudo.ru>
2025-06-17 23:50:38 +05:00
1169605e6e fix(subscription): handle missing MessageID during subscription flow
Fixed a bug where the subscription handler failed when MessageID was not properly received, causing the process to break or behave unexpectedly.

Signed-off-by: UdoChudo <stream@udochudo.ru>
2025-06-17 23:49:28 +05:00
d9df449a17 refactor(alerts): improve active problem fetching and message formatting
Reworked the logic for retrieving data from Zabbix API to make it more efficient and filter-aware. Message generation for Telegram bot was refactored and decoupled from data retrieval logic to improve structure, readability, and reuse.

Signed-off-by: UdoChudo <stream@udochudo.ru>
2025-06-17 23:46:39 +05:00
Vladislav Zverev
0169bf5d6b refactor(alerts): improve active problem fetching and message formatting
Reworked the logic for retrieving data from Zabbix API to make it more efficient and filter-aware. Message generation for Telegram bot was refactored and decoupled from data retrieval logic to improve structure, readability, and reuse.

Signed-off-by: UdoChudo <stream@udochudo.ru>
2025-06-17 23:44:30 +05:00
04d012759c Add debug command for switch logging level for telebot
Signed-off-by: UdoChudo <stream@udochudo.ru>
2025-06-17 23:34:37 +05:00
ccb47d527f refactor: modularize Telegram bot and add RabbitMQ client foundation
All checks were successful
Build and Push Docker Images / build (push) Successful in 1m28s
- Рефакторинг Telegram бота на модульную структуру для удобства поддержки и расширения
- Создан общий RabbitMQ клиент для Flask и Telegram компонентов
- Подготовлена базовая архитектура для будущего масштабирования и новых функций

Signed-off-by: UdoChudo <stream@udochudo.ru>
2025-06-16 09:08:46 +05:00
52e31864b3 feat: Develop web interface
- Implemented the initial version of the web interface.
refactor: Begin Telegram bot refactoring
- Started restructuring the bot’s code for better maintainability.
chore: Migrate to Flask project structure
- Reorganized the application to follow Flask's project structure.
cleanup: Extensive code cleanup
- Removed redundant code and improved readability.

Signed-off-by: UdoChudo <stream@udochudo.ru>
2025-06-10 14:39:11 +05:00
acf4436fc4 Optimize requirements.txt file 2025-05-05 18:03:09 +05:00
b94e8d4724 Говорила мне мама...ну нахер эти ваши HDD 2025-04-21 12:04:20 +05:00
9e2560f7c3 Refactoring and cleanup codebase (50%...)
MVP dashboard users page
2025-03-17 15:30:58 +05:00
20465600b1 Refactoring and cleanup codebase (starting...) 2025-02-23 14:47:13 +05:00
8a8cf8af30 Refactoring and cleanup codebase (starting...) 2025-02-23 14:47:10 +05:00
Влад Зверев
d0e91f5259 Merge remote-tracking branch 'git.udochudo.ru/master'
# Conflicts:
#	telezab.py
2025-02-13 17:27:21 +05:00
Влад Зверев
3c407b2a07 Refactoring get_zabbix_triggers now using problem.get instead of trigger.get 2025-02-13 17:24:38 +05:00
486539dbb3 Fix static route for WebUI 2025-02-12 23:50:43 +05:00
599a387ac1 Fix static route for WebUI 2025-02-12 23:34:33 +05:00
Влад Зверев
d5d0b27bed Rollback Dockerfile and requirements.txt 2025-02-12 13:43:02 +05:00
Влад Зверев
d5f1501c73 Merge remote-tracking branch 'git.udochudo.ru/master' 2025-02-12 13:39:03 +05:00
Влад Зверев
8a5acf5dc2 Fix get only current problem without ack and suppress 2025-02-12 13:38:34 +05:00
e2c6e61b5d Update packages 2025-02-09 12:57:32 +05:00
c997e49a74 Update packages 2025-02-09 12:23:21 +05:00
Влад Зверев
bfe4b1e938 Need broke them all and fix again 2025-02-09 09:58:02 +05:00
Влад Зверев
c72df3fd00 Small duty fix. now active triggers sorted order from past to now 2024-09-19 16:37:47 +05:00
Влад Зверев
889a408c57 Small cleanup code 2024-09-19 15:36:19 +05:00
Влад Зверев
a1b961ae20 Small cleanup code 2024-09-19 15:21:52 +05:00
Влад Зверев
4ef050e3c8 Update logging system 2024-09-19 02:55:34 +05:00
Влад Зверев
54784a41da Update Dockerfile 2024-09-18 20:46:54 +05:00
Влад Зверев
21834d7d71 Massive rework of menu,
Add endpoint telezab/users
Add endpoint telezab/users/add
Add endpoint telezab/users/del
Add endpoint telezab/users/get
Add endpoint telezab/regions
Add endpoint telezab/regions/add
Add endpoint telezab/regions/del
Add endpoint telezab/regions/get
Rework Active Triggers button now don't need subscription
Rework Help button
Add option to change what Notification type you want reciving All or Disaster Only
Rework Settings button removed some misc buttons
Rework Registration mechanism now using POST JSON users/add
Rework formating of Zabbix Triggers for Active triggers and Notification from Zabbix
2024-09-18 20:12:29 +05:00
Влад Зверев
dd66cb5712 rework Active triggers function
rework settings menu button
add function to choose what severity level you want to receive
2024-09-09 17:05:46 +05:00
Влад Зверев
0d2003b335 Cleanup requirements.txt from unused packages 2024-08-02 18:52:00 +05:00
Влад Зверев
f81b268d34 Cleanup requirements.txt from unused packages 2024-08-02 13:06:42 +05:00
Влад Зверев
391f35e4be Cleanup requirements.txt from unused packages 2024-08-02 12:04:25 +05:00
Влад Зверев
45bba687cd Add Log rotation
Add logging for Telebot and Flask
Add routing for Enable debugging for Flask and Telebot separately
2024-08-02 11:10:22 +05:00
Влад Зверев
730de38cee Add Log rotation
Add logging for Telebot and Flask
Add routing for Enable debugging for Flask and Telebot separately
2024-08-02 11:09:40 +05:00
Влад Зверев
41487ef5c6 Update .dockerignore 2024-08-01 10:23:48 +00:00
Влад Зверев
75809aaafc Fix formating message from zabbix now get Host, history url, host's ip and description of trigger
Trying to fix logger, add logrotation by app
2024-08-01 15:22:33 +05:00
Влад Зверев
3838645d7e Add function for grabbing and sending triggers from zabbix to user
Some many fixes
Now i can accept registration requests from my phone :D
2024-07-31 18:46:26 +05:00
Влад Зверев
2c06ccde2e Fix Get Active Triggers now working with Zabbix 2024-07-30 12:09:33 +05:00
Влад Зверев
b65b6aee48 small fix 2024-07-29 19:12:03 +05:00
bee536c715 add gitignore 2024-07-29 16:11:22 +05:00
b719850b15 Fix logger system
Remove someuseless function
2024-07-29 15:22:12 +05:00
2d4d3f265e Bugfix, add some extra test buttons 2024-07-15 23:52:05 +05:00
5ccd21ab18 Add RabbitMQ for guaranted delivery and rate_limit for message to avoid bans from Telegram Api 2024-07-13 22:18:16 +05:00
9f25be7ad9 Add some bug fixes
Add Sorting region list by Region number.
Add check what region is existing when removing and unsubscribing from it
2024-07-12 11:30:52 +05:00
ecc46b2b5b Merge remote-tracking branch 'origin/master' 2024-07-12 02:57:46 +05:00
85893af256 Fix bugs with missing regions id while trying subscribe and unsubscribe to it. Restrict unexpected events 2024-07-12 02:57:29 +05:00
Vladislav Zverev
abf58facce Change menu buttons, fix bug with unsub 2024-07-11 16:52:10 +05:00
656300d166 Update .gitignore 2024-07-11 16:19:23 +05:00
df5e98dda4 Change menu buttons, fix bug with unsub, add States for users 2024-07-11 16:17:36 +05:00
23824dc5fe Add Logging of sub/unsub/register
Add Russian localization
2024-07-10 22:48:51 +05:00