function monitoring_icinga_menu in Monitoring 7
Implements hook_menu().
File
- modules/
monitoring_icinga/ monitoring_icinga.module, line 14 - Monitoring Nagios module bootstrap file.
Code
function monitoring_icinga_menu() {
$items['admin/config/system/monitoring/icinga'] = array(
'title' => 'Icinga',
'description' => 'Configure Nagios/Icinga connector',
'page callback' => 'monitoring_icinga_config_active_page',
'access arguments' => array(
'administer monitoring',
),
'type' => MENU_LOCAL_TASK,
'file' => 'monitoring_icinga.admin.inc',
);
$items['admin/config/system/monitoring/icinga/active'] = array(
'title' => 'Active check',
'description' => 'Configure Nagios/Icinga connector for active checks',
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'monitoring_icinga.admin.inc',
);
$items['admin/config/system/monitoring/icinga/passive'] = array(
'title' => 'Passive check',
'description' => 'Configure Nagios/Icinga connector for passive checks',
'page callback' => 'monitoring_icinga_config_passive_page',
'access arguments' => array(
'administer monitoring',
),
'type' => MENU_LOCAL_TASK,
'file' => 'monitoring_icinga.admin.inc',
);
$items['admin/config/system/monitoring/icinga/passive-with-freshness'] = array(
'title' => 'Passive check /w freshness',
'description' => 'Configure Nagios/Icinga connector for passive checks with freshness check',
'page callback' => 'monitoring_icinga_config_passive_with_freshness_page',
'access arguments' => array(
'administer monitoring',
),
'type' => MENU_LOCAL_TASK,
'file' => 'monitoring_icinga.admin.inc',
);
return $items;
}