root@zabbix:/# cd /usr/lib/zabbix/alertscripts/
root@zabbix:/usr/lib/zabbix/alertscripts# ./telegram 280914675 erro paroutudo
Traceback (most recent call last):
File "./telegram", line 13, in <module>
tb.send_message(DESTINATION,SUBJECT + '\n' + MESSAGE)
File "/usr/local/lib/python2.7/dist-packages/telebot/__init__.py", line 397, in send_message
reply_markup, parse_mode, disable_notification))
File "/usr/local/lib/python2.7/dist-packages/telebot/apihelper.py", line 115, in send_message
return _make_request(token, method_url, params=payload, method='post')
File "/usr/local/lib/python2.7/dist-packages/telebot/apihelper.py", line 34, in _make_request
result = requests.request(method, request_url, params=params, files=files, timeout=(connect_timeout, read_timeout))
File "/usr/lib/python2.7/dist-packages/requests/api.py", line 49, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 457, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 569, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 407, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', gaierror(-2, 'Name or service not known'))