Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 140a142
- > rrd_data = ''
- 145c147,152
- < rrd_step, rrd_data = get_rrd_data(host, service, dsname, "MAX", from_time, until_time)
- ---
- > influx_settings = read_influx_config('/etc/check_mk/influxdb.config')
- > if influx_settings['use_influx']:
- > client = ic(influx_settings['host'], influx_settings['port'], influx_settings['user'], influx_settings['password'], influx_settings['database'])
- > rrd_step, rrd_data = get_influx_data(host, service, dsname, "MAX", from_time, until_time, client)
- > else:
- > rrd_step, rrd_data = get_rrd_data(host, service, dsname, "MAX", from_time, until_time)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement