def config(config):
    global lock_file
    for node in config.children:
        key = node.key.lower()
        val = node.values[0]
        if (key == 'lockfile'):
            lock_file = val
            collectd.info(('sht21 user-mode plugin: Using lock file %s' % lock_file))
def config(config):
    global lock_file
    for node in config.children:
        key = node.key.lower()
        val = node.values[0]
        if (key == 'lockfile'):
            lock_file = val
            collectd.info(('sht21 user-mode plugin: Using lock file %s' % lock_file))