unioslo / zabbix-cli

Command-line interface for Zabbix
https://unioslo.github.io/zabbix-cli/
GNU General Public License v3.0
208 stars 105 forks source link

InsecureRequestWarning: Unverified HTTPS request is being made. #168

Closed tjyang closed 1 year ago

tjyang commented 1 year ago

############################################################# Welcome to the Zabbix command-line interface (v2.3.1) Connected to server https:/test01.test.com/zabbix (v6.4.8) ############################################################# Type help or \? to list commands.

[zabbix-cli Admin@test02]$

- cert_verify is already set to OFF

[me@test02 .zabbix-cli]$ grep cert zabbix-cli.conf cert_verify = OFF [me@test02 .zabbix-cli]$

tjyang commented 1 year ago

I use following line to slicence for the warnning message for remote zabbix server without proper certificate. See R1 for details.

export PYTHONWARNINGS="ignore:Unverified HTTPS request" && zabbix-cli

R1: https://stackoverflow.com/questions/27981545/suppress-insecurerequestwarning-unverified-https-request-is-being-made-in-pytho

tjyang commented 1 year ago

@pederhan , pls take a look of this issue. cert_veriy set to off doesn't work.

[me@test03 ~]$ grep cert_verify  .zabbix-cli/zabbix-cli.conf
#cert_verify = ON
cert_verify = OFF
[me@test03 ~]$
pederhan commented 1 year ago

Yes, I will look at it as soon as possible.