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

Strange fail due to zbxtg;title definition #4

Closed
SebastianPereiro opened this issue Aug 15, 2015 · 4 comments
Closed

Strange fail due to zbxtg;title definition #4

SebastianPereiro opened this issue Aug 15, 2015 · 4 comments

Comments

@SebastianPereiro
Copy link

Hi!
Thanks for your code!
I have a strange problem with title tag:

sudo -u zabbix ./zbxtg.sh "mishaso" "PROBLEM" "Last value: 38 °C (03:56:48)

zbxtg;graphs
zbxtg;graphs_period=10800
zbxtg;itemid: 23865
zbxtg;title: Zabbix server - HDD temperature too high"
{"ok":false,"error_code":400,"description":"Error: IMAGE_PROCESS_FAILED"}

Same command but with modified title:

sudo -u zabbix ./zbxtg.sh "mishaso" "PROBLEM" "Last value: 38 °C (03:56:48)

zbxtg;graphs
zbxtg;graphs_period=10800
zbxtg;itemid:23865
zbxtg;title:Zabbix server"
{"ok":true,"result":{"message_id":18,"from":{"id":133785011,"first_name":"Zabbix3a","username":"Zabbix3a_bot"},"chat":{"id":75825145,"first_name":"Misha","last_name":"So","username":"mishaso"},"date":1439641061,"photo":[{"file_id":"AgADAgADsqcxG7Nl-QdEPoTAqQABcOh-6VkqAAQIaMHEsWX9jjY0AQABAg","file_size":748,"width":90,"height":33},{"file_id":"AgADAgADsqcxG7Nl-QdEPoTAqQABcOh-6VkqAATg2st_kQ0mQTU0AQABAg","file_size":9630,"width":320,"height":118},{"file_id":"AgADAgADsqcxG7Nl-QdEPoTAqQABcOh-6VkqAASnvMicpRqE4DQ0AQABAg","file_size":51419,"width":800,"height":296},{"file_id":"AgADAgADsqcxG7Nl-QdEPoTAqQABcOh-6VkqAARNQCIFUZCRmzM0AQABAg","file_size":69879,"width":1016,"height":376}],"caption":"PROBLEM\nLast value: 38 \u00b0C (03:56:48)\n--"}}

How can I help you to fix it?

@SebastianPereiro
Copy link
Author

Found another error:
sudo -u zabbix ./zbxtg.sh "mishaso" "PROBLEM" "Last value: 25.1 % (17:41:08)

zbxtg;graphs
zbxtg;graphs_period=10800
zbxtg;itemid: 23825
zbxtg;title: Zabbix server - Disk I/O is overloaded on Zabbix server
"
{"ok":false,"error_code":400,"description":"Error: PHOTO_INVALID_DIMENSIONS"}

@a-zazell
Copy link

+1, заменил title из примера на
zbxtg;title:{HOST.HOST} - {ITEM.NAME1}

@ableev
Copy link
Owner

ableev commented Dec 9, 2015

@SebastianPereiro you have whitespace after "zbxtg;itemid:", so script didn't get any image from zabbix web ui because of that. Will be fixed in #8. You can checkout branch issues-8. Thanks.

@a-zazell не проблема title, как раз, потому что пишет ошибки про фотки.

@ableev
Copy link
Owner

ableev commented Jan 8, 2016

@SebastianPereiro please check python version

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

No branches or pull requests

3 participants