function monitoring_munin_menu in Monitoring 7
Implements hook_menu().
File
- modules/
monitoring_munin/ monitoring_munin.module, line 12 - Monitoring Munin module bootstrap file.
Code
function monitoring_munin_menu() {
$items['admin/config/system/monitoring/munin'] = array(
'title' => 'Munin',
'description' => 'Configure Munin connector',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'monitoring_munin_graph_settings',
),
'access arguments' => array(
'administer monitoring',
),
'type' => MENU_LOCAL_TASK,
'file' => 'monitoring_munin.admin.inc',
);
$items['admin/config/system/monitoring/munin/graph-settings'] = array(
'title' => 'Graph settings',
'description' => 'Configure Munin graph output',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10,
);
$items['admin/config/system/monitoring/munin/config'] = array(
'title' => 'Config script',
'description' => 'Munin setup configuration script.',
'page callback' => 'monitoring_munin_config_page',
'access arguments' => array(
'administer monitoring',
),
'type' => MENU_LOCAL_TASK,
'file' => 'monitoring_munin.admin.inc',
);
return $items;
}