- if (strcasecmp ("Instance", option->key) == 0)
- status = ut_config_type_instance (&th, option);
- else if (strcasecmp ("DataSource", option->key) == 0)
- status = ut_config_type_datasource (&th, option);
- else if ((strcasecmp ("WarningMax", option->key) == 0)
- || (strcasecmp ("FailureMax", option->key) == 0))
- status = ut_config_type_max (&th, option);
- else if ((strcasecmp ("WarningMin", option->key) == 0)
- || (strcasecmp ("FailureMin", option->key) == 0))
- status = ut_config_type_min (&th, option);
- else if (strcasecmp ("Interesting", option->key) == 0)
- status = cf_util_get_flag (option, &th.flags, UT_FLAG_INTERESTING);
- else if (strcasecmp ("Invert", option->key) == 0)
- status = cf_util_get_flag (option, &th.flags, UT_FLAG_INVERT);
- else if (strcasecmp ("Persist", option->key) == 0)
- status = cf_util_get_flag (option, &th.flags, UT_FLAG_PERSIST);
- else if (strcasecmp ("PersistOK", option->key) == 0)
- status = cf_util_get_flag (option, &th.flags, UT_FLAG_PERSIST_OK);
- else if (strcasecmp ("Percentage", option->key) == 0)
- status = cf_util_get_flag (option, &th.flags, UT_FLAG_PERCENTAGE);
- else if (strcasecmp ("Hits", option->key) == 0)
- status = ut_config_type_hits (&th, option);
- else if (strcasecmp ("Hysteresis", option->key) == 0)
- status = ut_config_type_hysteresis (&th, option);
- else
- {
- WARNING ("threshold values: Option `%s' not allowed inside a `Type' "
- "block.", option->key);
+ if (strcasecmp("Instance", option->key) == 0)
+ status = ut_config_type_instance(&th, option);
+ else if (strcasecmp("DataSource", option->key) == 0)
+ status = ut_config_type_datasource(&th, option);
+ else if ((strcasecmp("WarningMax", option->key) == 0) ||
+ (strcasecmp("FailureMax", option->key) == 0))
+ status = ut_config_type_max(&th, option);
+ else if ((strcasecmp("WarningMin", option->key) == 0) ||
+ (strcasecmp("FailureMin", option->key) == 0))
+ status = ut_config_type_min(&th, option);
+ else if (strcasecmp("Interesting", option->key) == 0)
+ status = cf_util_get_flag(option, &th.flags, UT_FLAG_INTERESTING);
+ else if (strcasecmp("Invert", option->key) == 0)
+ status = cf_util_get_flag(option, &th.flags, UT_FLAG_INVERT);
+ else if (strcasecmp("Persist", option->key) == 0)
+ status = cf_util_get_flag(option, &th.flags, UT_FLAG_PERSIST);
+ else if (strcasecmp("PersistOK", option->key) == 0)
+ status = cf_util_get_flag(option, &th.flags, UT_FLAG_PERSIST_OK);
+ else if (strcasecmp("Percentage", option->key) == 0)
+ status = cf_util_get_flag(option, &th.flags, UT_FLAG_PERCENTAGE);
+ else if (strcasecmp("Hits", option->key) == 0)
+ status = ut_config_type_hits(&th, option);
+ else if (strcasecmp("Hysteresis", option->key) == 0)
+ status = ut_config_type_hysteresis(&th, option);
+ else {
+ WARNING("threshold values: Option `%s' not allowed inside a `Type' "
+ "block.",
+ option->key);