Data is read from a module's configuration file into the module by using the register_config_handler() function. For example, you can call the function as follows:
register_config_handler("my_module", "some_token", load_my_tokens, NULL, NULL);
Whenever the token some_token is read by the agent in my_module.conf file, the load_my_tokens() function is called with token name and value as arguments. The load_my_tokens() function is invoked. The data can be parsed by using the read_config_read_data() function.