Zabbix-in-Telegram
Zabbix-in-Telegram copied to clipboard
Interactive bot
Create the ability to answer to commands.
- Bot should reply directly to whitelisted users
- Bot should reply to a group chat
- All requests must be going through API because not everyone is using MySQL
- Bot should not have any rights to make changes (e.g. acknowledge some problem or escalate severity), ever
Nice
zbx_tg_daemon_enabled = False
Change to True
zbx_tg_daemon_wl_ids = [6931850, ]
Add your id
zbx_tg_daemon_wl_u
– doesn’t work yet
zbx_db_host = "localhost"
zbx_db_database = "zabbix"
zbx_db_user = "zbxtg"
zbx_db_password = "zbxtg"
Provide access to DB
Very nice, seems promising :)
Suggestions for other commands:
- "Shut up about X" where X is an event that you dont want to hear more about (for example when having escallation that repeats it)
- "Put Y in maintenance for X hours" - put a host in maintenance mode for some time
- "Acknowledge y with comment: blah" - acknowledges the trigger
- "Shut up about X" where X is an event that you dont want to hear more about (for example when having escallation that repeats it)
Telegram can do it, you can mute notifications from contact.
- "Put Y in maintenance for X hours" - put a host in maintenance mode for some time
Maintenance for host/group/trigger? Bad way, I'm sure that user shoud not be able to manipulate zabbix via bot, it is very unsafe. Yes, bot can be compromised somehow, but if it will happen, third person will get only small (and readony) info about your monitoring system.
- "Acknowledge y with comment: blah" - acknowledges the trigger See below.
Suggestions:
- Get a graph 2 hour; 6 hours; 2 day.
- Get a list of users who have been notified about the event.
- Get a list of events on the trigger 24 hours, 7 days
@samosvat
- Yes, agreed
- What are you talking about? Which users?
- Can't find it useful but seems reasonable
2 - A list of users:
- Which sent a notification
- And which are not sent
When I see who else has received the notification - I know who are already aware of the problem, and who should be notified separately.