Closed Vladimir-Sl closed 4 years ago
You can set token in the parameters, no need to copy scripts, it's harder to update it
I mean, there is already 1 working script left over from the previous system administrator, and this script is already sending messages through a bot that I can’t control.
I created my group and my bot and made a separate folder for it and a new configuration for scripts.
Or is it meant to add a second tg_key
to one zbxtg_settings.py
script?
Thanks! I take off my issue.
Hi. This is not a problem rather a hint. Setting up the script on different bots. In
/usr/lib/zabbix/alertscripts
create the folderbot2
and copy the main scripts as described inREADME.md
. In the settings zabbix -> Configuration > Media types > Create media type, in the new Media types > Script name, writebot2/zbxtg_group.py
and make further settings. Parameters inbot2/zbxtg_settings.py
are changed to a new bot. The configuration has been verified and is currently working on my server and sends an alarm to two different bots.