You are here

function monitoring_host_key in Monitoring 7

Same name and namespace in other branches
  1. 8 monitoring.module \monitoring_host_key()

Gets host key.

Return value

string Host key.

5 calls to monitoring_host_key()
monitoring_icinga_config_active_page in modules/monitoring_icinga/monitoring_icinga.admin.inc
Icinga config active page callback.
monitoring_icinga_config_passive_with_freshness_page in modules/monitoring_icinga/monitoring_icinga.admin.inc
Icinga config active page callback.
monitoring_icinga_objects_definitions_output in modules/monitoring_icinga/monitoring_icinga.admin.inc
Creates the object definitions output part.
monitoring_munin_multigraph_identifier in modules/monitoring_munin/monitoring_munin.module
Composes multigraph identifier.
monitoring_munin_sensor_identifier in modules/monitoring_munin/monitoring_munin.module
Composes sensor identifier based on the current host.

File

./monitoring.module, line 624
Monitoring bootstrap file.

Code

function monitoring_host_key() {
  return str_replace('.', '_', monitoring_host());
}