appzer / zabbix-pushsafer

A python script for sending pushsafer.com notifications in ZABBIX.
https://www.pushsafer.com
7 stars 2 forks source link

Warning about unverified HTTPS request #1

Closed ktuulos closed 5 years ago

ktuulos commented 6 years ago

When executing the script (2017-09-15 14:10:54 version), it gives following warning:

/usr/local/lib/python2.7/dist-packages/urllib3-1.22-py2.7.egg/urllib3/connectionpool.py:858: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning)

This does not prohibit using the script - messages are delivered successfully.

appzer commented 6 years ago

thats correct! zabbix (not secured) sends the payload (title,message) to our SSL secured server > https://www.pushsafer.com/api

To solve the issue you can create a certificate,like here: https://stackoverflow.com/questions/30405867/how-to-get-python-requests-to-trust-a-self-signed-ssl-certificate

Kevin

piotrgawor commented 5 years ago

You can also add:

import urllib3
urllib3.disable_warnings()

at the top of script.