You are here

function monitoring_munin_sensor_identifier in Monitoring 7

Composes sensor identifier based on the current host.

Parameters

string $sensor_name: Sensor name

Return value

string Sensor identifier.

2 calls to monitoring_munin_sensor_identifier()
monitoring_munin_config in modules/monitoring_munin/monitoring_munin.module
Returns the munin graphs definitions.
_monitoring_munin_result in modules/monitoring_munin/monitoring_munin.module
Returns the monitoring result.

File

modules/monitoring_munin/monitoring_munin.module, line 263
Monitoring Munin module bootstrap file.

Code

function monitoring_munin_sensor_identifier($sensor_name) {
  return str_replace('-', '_', monitoring_host_key() . '__' . $sensor_name);
}