Advertisement
Guest User

htdocs prediction patch

a guest
May 28th, 2015
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1. 140a142
  2. >         rrd_data = ''
  3. 145c147,152
  4. <         rrd_step, rrd_data = get_rrd_data(host, service, dsname, "MAX", from_time, until_time)
  5. ---
  6. >         influx_settings = read_influx_config('/etc/check_mk/influxdb.config')
  7. >         if influx_settings['use_influx']:
  8. >             client = ic(influx_settings['host'], influx_settings['port'], influx_settings['user'], influx_settings['password'], influx_settings['database'])
  9. >             rrd_step, rrd_data = get_influx_data(host, service, dsname, "MAX", from_time, until_time, client)
  10. >         else:
  11. >             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