Skip to content

Commit

Permalink
Merge 958a91e into bb65783
Browse files Browse the repository at this point in the history
  • Loading branch information
cholletk committed May 23, 2019
2 parents bb65783 + 958a91e commit c63fb10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions module/module.py
Expand Up @@ -57,6 +57,7 @@ def __init__(self, modconf):
self.password = getattr(modconf, 'password', 'root')
self.database = getattr(modconf, 'database', 'database')
self.use_https = getattr(modconf, 'use_https', '0') == '1'
self.verify_ssl = getattr(modconf, 'verify_ssl', '1') == '1'
self.use_udp = getattr(modconf, 'use_udp', '0') == '1'
self.udp_port = int(getattr(modconf, 'udp_port', '4444'))

Expand All @@ -79,8 +80,8 @@ def init(self):

self.db = InfluxDBClient(
self.host, self.port, self.user, self.password, self.database,
ssl=self.use_https, use_udp=self.use_udp,
udp_port=self.udp_port, timeout=None
ssl=self.use_https, verify_ssl=self.verify_ssl,
use_udp=self.use_udp, udp_port=self.udp_port, timeout=None
)

def get_check_result_perfdata_points(self, perf_data, timestamp, tags={}):
Expand Down

0 comments on commit c63fb10

Please sign in to comment.