Advertisement
Guest User

Untitled

a guest
Jun 13th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.56 KB | None | 0 0
  1. root@monitoring ~ # sudo -u zabbix /usr/lib/zabbix/alertscripts/zbxtg.py --group "ZLib - Alerts" "test" "test" --debug
  2. zbxtg.py: {u'ok': True, u'result': {u'username': u'ZLib_Zabbix_bot', u'first_name': u'ZLib_zabbix_bot', u'is_bot': True, u'id': 694923902}}
  3. zbxtg.py: Cache file with uids: /var/tmp/zbxtg/uids.txt
  4. zbxtg.py: Trying to read cached uid for --group, group, from /var/tmp/zbxtg/uids.txt
  5. zbxtg.py: Getting uid from /getUpdates...
  6. zbxtg.py: https://api.telegram.org/bot694923902:AAEpx0Au6CvrDhCMK8A7oW34cp-RCKuRmyw/getUpdates
  7. zbxtg.py: Content of /getUpdates:
  8. zbxtg.py: {"ok": true, "result": [{"message": {"from": {"username": "eermolaeva", "first_name": "Evgenia", "last_name": "Ermolaeva", "is_bot": false, "language_code": "de", "id": 272856513}, "text": "/start@ZLib_Zabbix_bot", "entities": [{"length": 22, "type": "bot_command", "offset": 0}], "chat": {"all_members_are_administrators": true, "type": "group", "id": -120138659, "title": "ZLib - Alerts"}, "date": 1560336896, "message_id": 612}, "update_id": 442767884}, {"message": {"from": {"username": "eermolaeva", "first_name": "Evgenia", "last_name": "Ermolaeva", "is_bot": false, "language_code": "de", "id": 272856513}, "text": "/start@ZLib_Zabbix_bot", "entities": [{"length": 22, "type": "bot_command", "offset": 0}], "chat": {"all_members_are_administrators": true, "type": "group", "id": -120138659, "title": "ZLib - Alerts"}, "date": 1560349074, "message_id": 616}, "update_id": 442767885}]}
  9. zbxtg.py: You need start a conversation with your bot first in '--group' group chat, type '/start@ZLib_Zabbix_bot'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement