added ssl/verify_ssl for influx as options
This commit is contained in:
parent
989e7f0e44
commit
3d0f4b275f
4 changed files with 12 additions and 5 deletions
|
@ -141,13 +141,15 @@ class INIParser(object):
|
|||
self.config_blacklist()
|
||||
# Parse InfluxDB options
|
||||
url = self.url_check(self.config.get('influxdb', 'url'), include_port=False, section='influxdb')
|
||||
|
||||
port = self.config.getint('influxdb', 'port')
|
||||
ssl = self.config.getboolean('influxdb', 'ssl')
|
||||
verify_ssl = self.config.getboolean('influxdb', 'verify_ssl')
|
||||
|
||||
username = self.config.get('influxdb', 'username')
|
||||
|
||||
password = self.config.get('influxdb', 'password')
|
||||
self.influx_server = InfluxServer(url=url, port=port, username=username, password=password)
|
||||
|
||||
self.influx_server = InfluxServer(url=url, port=port, username=username, password=password, ssl=ssl,
|
||||
verify_ssl=verify_ssl)
|
||||
|
||||
# Check for all enabled services
|
||||
for service in self.services:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue