Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple way to send messages to group #15

Closed
ableev opened this issue Jan 10, 2016 · 21 comments
Closed

Simple way to send messages to group #15

ableev opened this issue Jan 10, 2016 · 21 comments
Assignees
Labels

Comments

@ableev
Copy link
Owner

ableev commented Jan 10, 2016

Now you need to add special flag "zbxtg;chat".
Has to be simpler.

@ableev ableev added the feature label Jan 10, 2016
ableev pushed a commit that referenced this issue Jan 10, 2016
ableev pushed a commit that referenced this issue Jan 10, 2016
@camillagds
Copy link

Put in the README.md this information.
Thank you very much ;)

@ableev
Copy link
Owner Author

ableev commented Jan 20, 2016

@camillagds I already did, "Configuration / Installation" part.

@rimametal
Copy link

Hi,
I could not use the zbxtg_group.py, would you please help me to and give me a hint.

@ableev
Copy link
Owner Author

ableev commented Jan 23, 2016

@rimametal
Copy link

would you please check the content of zbxtg_group.py?
with current content (just 1 line) here is the result:

./zbxtg_group.py "Zabbix in Telegram" test test
./zbxtg_group.py: line 1: zbxtg.py: command not found

@ableev
Copy link
Owner Author

ableev commented Jan 23, 2016

@rimametal there is no content, it is just symbolic link to zbxtg.py.

@rimametal
Copy link

so, is it mean that I have to copy the content of "zbxtg.py" to "zbxtg_group.py"?

@rimametal
Copy link

with same content in both file:

./zbxtg_group.py "Zabbix in Telegram" test test
: No such file or directory

@ableev
Copy link
Owner Author

ableev commented Jan 23, 2016

@rimametal pull the code again, and make sure that zbxtg_group.py is symbolic link to zbxtg.py

@rimametal
Copy link

Thanks a lot, Group messaging start working.
But because of my poor knowledge of python and scripting, now I have issue with sending graph to Telegram, copied your mentioned action to Zabbix, but not working while original Zabbix action working well and send text messages to Telegram!

@ableev
Copy link
Owner Author

ableev commented Jan 23, 2016

@rimametal you don't need to known python.
Check the article: https://github.com/ableev/Zabbix-in-Telegram/wiki/How-to-test-script-in-command-line I've added record about graphs.

@rimametal
Copy link

Thanks.
No success yet, I tested everything based on the wiki and send a graph through CLI and works well, but when using action, nothing send! any idea?

@ableev
Copy link
Owner Author

ableev commented Jan 23, 2016

Check zabbix_server.log
Check if selinux is enabled.

@rimametal
Copy link

Thanks a lot.
It was a problem with /tmp folder access.
Its a great Zabbix Plug-in.

@rimametal
Copy link

Did you ever works on Two way communication with Zabbix using Telegram Bot?
For example when you receive a Trigger Alert, send a message to the Bot to acknowledge that event.

@ableev
Copy link
Owner Author

ableev commented Jan 24, 2016

@rimametal I thought about that, but you need to keep you bot available via public web url, most of zabbix servers are running in local network.

@rimametal
Copy link

My Zabbix installation have access to public network as well as private one, so If you have the files ready I can test it.

@ableev
Copy link
Owner Author

ableev commented Feb 20, 2016

I think that original idea was implemented.
Any other enhancements will be available for zabbix 3.x.

@ableev ableev closed this as completed Feb 20, 2016
@ableev ableev self-assigned this Feb 20, 2016
@BenePhetes
Copy link

Hi ableev,

Hope you are well!

I'm still getting this message

zbxtg.py: User 'userName' needs to send some text bot in private

I sent /start and send also message to my bot, and I still received that error.

Thank you!

@MengLeangSN
Copy link

Hi i'm young of zabbix
I'm try to configure like below
https://github.com/ableev/Zabbix-in-Telegram
but not working
please help me
thank!

@vaemarr
Copy link

vaemarr commented Feb 20, 2019

same issues here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants