function nagios_nagios_settings in Nagios Monitoring 5
Same name and namespace in other branches
- 8 nagios.module \nagios_nagios_settings()
- 6 nagios.module \nagios_nagios_settings()
- 7 nagios.module \nagios_nagios_settings()
Implementation of hook_nagios_settings()
File
- ./
nagios.module, line 227
Code
function nagios_nagios_settings() {
foreach (nagios_functions() as $function) {
$var = 'nagios_func_' . $function;
$form[$var] = array(
'#type' => 'checkbox',
'#title' => $function,
'#default_value' => variable_get($var, TRUE),
);
}
$group = 'thresholds';
$form[$group] = array(
'#type' => 'fieldset',
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#title' => t('Thresholds'),
'#description' => t('Thresholds for reporting critical alerts to Nagios.'),
);
$form[$group]['nagios_cron_duration'] = array(
'#type' => 'textfield',
'#title' => t('Cron duration'),
'#default_value' => variable_get('nagios_cron_duration', 60),
'#description' => t('Issue a critical alert when cron has not been running for this duration (in minutes). Default is 60 minutes.'),
);
return $form;
}