Previously called "Hostname".
# #SelectDB "custdb0"
# Query "num_of_customers"
# #Query "..."
# #SelectDB "custdb0"
# Query "num_of_customers"
# #Query "..."
blocks you want to refer to must be placed above the database block you want to
refer to them from.
blocks you want to refer to must be placed above the database block you want to
refer to them from.
+=item B<Host> I<Hostname>
+
+Sets the B<host> field of I<value lists> to I<Hostname> when dispatching
+values. Defaults to the global hostname setting.
+
=back
=head2 Plugin C<df>
=back
=head2 Plugin C<df>
char *select_db;
char *driver;
char *select_db;
char *driver;
cdbi_driver_option_t *driver_options;
size_t driver_options_num;
cdbi_driver_option_t *driver_options;
size_t driver_options_num;
else if (strcasecmp ("Query", child->key) == 0)
status = udb_query_pick_from_list (child, queries, queries_num,
&db->queries, &db->queries_num);
else if (strcasecmp ("Query", child->key) == 0)
status = udb_query_pick_from_list (child, queries, queries_num,
&db->queries, &db->queries_num);
- else if (strcasecmp ("Hostname", child->key) == 0)
- status = cf_util_get_string (child, &db->hostname);
+ else if (strcasecmp ("Host", child->key) == 0)
+ status = cf_util_get_string (child, &db->host);
else
{
WARNING ("dbi plugin: Option `%s' not allowed here.", child->key);
else
{
WARNING ("dbi plugin: Option `%s' not allowed here.", child->key);
sstrncpy (column_names[i], column_name, DATA_MAX_NAME_LEN);
} /* }}} for (i = 0; i < column_num; i++) */
sstrncpy (column_names[i], column_name, DATA_MAX_NAME_LEN);
} /* }}} for (i = 0; i < column_num; i++) */
- udb_query_prepare_result (q, prep_area, (db->hostname ? db->hostname : hostname_g),
+ udb_query_prepare_result (q, prep_area, (db->host ? db->host : hostname_g),
/* plugin = */ "dbi", db->name,
column_names, column_num, /* interval = */ 0);
/* plugin = */ "dbi", db->name,
column_names, column_num, /* interval = */ 0);