You are here

function monitoring_host in Monitoring 7

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

Gets current site host.

Return value

string Site url.

6 calls to monitoring_host()
monitoring_host_key in ./monitoring.module
Gets host key.
monitoring_icinga_config_passive_page in modules/monitoring_icinga/monitoring_icinga.admin.inc
Icinga config passive 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_config in modules/monitoring_munin/monitoring_munin.module
Returns the munin graphs definitions.

... See full list

File

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

Code

function monitoring_host() {
  global $base_url;
  return preg_replace('/^http(s)?:\\/\\//', '', $base_url);
}