Zabbix-in-Telegram icon indicating copy to clipboard operation
Zabbix-in-Telegram copied to clipboard

Interactive bot

Open ableev opened this issue 8 years ago • 7 comments

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

ableev avatar Aug 19 '16 13:08 ableev

Nice

janssenlima avatar Aug 19 '16 14:08 janssenlima

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

ableev avatar Aug 22 '16 06:08 ableev

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

Brimstedt avatar Aug 22 '16 10:08 Brimstedt

  • "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.

ableev avatar Aug 22 '16 10:08 ableev

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 avatar Sep 16 '16 10:09 samosvat

@samosvat

  1. Yes, agreed
  2. What are you talking about? Which users?
  3. Can't find it useful but seems reasonable

ableev avatar Sep 16 '16 11:09 ableev

2 - A list of users:

  • Which sent a notification
  • And which are not sent image

When I see who else has received the notification - I know who are already aware of the problem, and who should be notified separately.

samosvat avatar Sep 16 '16 11:09 samosvat