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

In zbxgt.sh script parameter to send to chat should be "zbxtg;chat" but not a "zbxtg;channel" #30

Closed
Varrkan82 opened this issue Mar 11, 2016 · 4 comments
Assignees

Comments

@Varrkan82
Copy link

From a script code:

TG_CHAT=0 # send message to chat or to private chat to user
METHOD="txt" # sendMessage (simple text) or sendPhoto (attached image)

echo "${BODY}" | grep -q "${ZBX_TG_PREFIX};graphs" && METHOD="image"
echo "${BODY}" | grep -q "${ZBX_TG_PREFIX};chat" && TG_CHAT=1
echo "${BODY}" | grep -q "${ZBX_TG_PREFIX};debug" && ISDEBUG="TRUE" 
@Varrkan82
Copy link
Author

Did you still support this .sh script version?

@ableev
Copy link
Owner

ableev commented Mar 28, 2016

Ok, thank you for report. I don't understand what you wanted to say in title, but obviously bash script has to be the same as python script.
@Varrkan82 yes, but in minor priority.

@Varrkan82
Copy link
Author

Sorry. This report more about annotations in your HOWTO. I've spent a few hours to make a script work with a wrong instruction. :)

Annotations

zbxtg;graphs -- enables attached graphs
zbxtg;graphs_period=10800 -- set graphs period (default - 3600 seconds)
zbxtg;graphs_width=700 -- set graphs width (default - 900px)
zbxtg;graphs_height=300 -- set graphs height (default - 300px)
zbxtg;itemid:{ITEM.ID1} -- define itemid (from trigger) for attach
zbxtg;title:{HOST.HOST} - {TRIGGER.NAME} -- graph title
zbxtg;debug -- enables debug mode, some logs and images will be saved in the tmp dir (temporary doesn't affect python version)
zbxtg;channel -- enables sending to channels

ableev pushed a commit that referenced this issue Jun 8, 2016
@ableev
Copy link
Owner

ableev commented Jun 8, 2016

Fixed!

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

No branches or pull requests

2 participants