티스토리 뷰

Linux

zabbix5 텔레그램 알람 받기

초보의 CHOMAN 2020. 6. 17. 12:13

텔레그램 봇 연동

관리 - 미디어 타입 - Telegram (선택)

ParseMode : Markdown
Token : <텔레그램 봇파더 한테 받은 토큰값 등록>

zabbix 관리자 텔레그램 아이디 설정

관리 - 유저 - Admin - 연락방법 (탭) - 추가

액션 활성화

설정 - 액션 - Report problems to Zabbix administrators (선택) - 활설 버튼 클릭후 갱신

텔레그램 봇 생성

텔레그램 검색 : @BotFather

me) /start

I can help you create and manage Telegram bots. If you're new to the Bot API, please see the manual (https://core.telegram.org/bots).

You can control me by sending these commands:

/newbot - create a new bot
/mybots - edit your bots [beta]

Edit Bots
/setname - change a bot's name
/setdescription - change bot description
/setabouttext - change bot about info
/setuserpic - change bot profile photo
/setcommands - change the list of commands
/deletebot - delete a bot

Bot Settings
/token - generate authorization token
/revoke - revoke bot access token
/setinline - toggle inline mode (https://core.telegram.org/bots/inline)
/setinlinegeo - toggle inline location requests (https://core.telegram.org/bots/inline#location-based-results)
/setinlinefeedback - change inline feedback (https://core.telegram.org/bots/inline#collecting-feedback) settings
/setjoingroups - can your bot be added to groups?
/setprivacy - toggle privacy mode (https://core.telegram.org/bots#privacy-mode) in groups

Games
/mygames - edit your games (https://core.telegram.org/bots/games) [beta]
/newgame - create a new game (https://core.telegram.org/bots/games)
/listgames - get a list of your games
/editgame - edit a game
/deletegame - delete an existing game

me) /newbot

Alright, a new bot. How are we going to call it? Please choose a name for your bot.

me) 한글로 입력 가능

Good. Now let's choose a username for your bot. It must end in `bot`. Like this, for example: TetrisBot or tetris_bot.

me) anyany_bot # 반드시 _bot 으로 끝나는 이름 입력

Done! Congratulations on your new bot. You will find it at t.me/봇이름_bot. You can now add a description, about section and profile picture for your bot, see /help for a list of commands. By the way, when you've finished creating your cool bot, ping our Bot Support if you want a better username for it. Just make sure the bot is fully operational before you do this.

Use this token to access the HTTP API:
여기 출력되는 토큰값 저장해놓기
Keep your token secure and store it safely, it can be used by anyone to control your bot.

For a description of the Bot API, see this page: https://core.telegram.org/bots/api

내 계정 아이디번호 알아보기

텔레그램 검색 : @IDBot

me) /start

This bot can supply reply with your Telegram user ID.
Use /getid command to get your Telegram ID
Or alternatively, use /getgroupid to get a group's ID.

If this bot helped you, don't forget to rate it on the Bot Store: https://telegram.me/storebot?start=myidbot

me) /getid

아이디 번호 출력됨

대화형식으로 생성가능함 어렵지는 않음

댓글
댓글쓰기 폼
공지사항