function prod_check_nagios_status_page in Production check & Production monitor 6
Same name and namespace in other branches
- 7 prod_check.module \prod_check_nagios_status_page()
Custom callback to override /nagios page.
1 string reference to 'prod_check_nagios_status_page'
- prod_check_menu_alter in ./
prod_check.module - Implementation of hook_menu_alter()
File
- ./
prod_check.module, line 200
Code
function prod_check_nagios_status_page() {
// Make sure this page is not cached.
$GLOBALS['conf']['cache'] = FALSE;
header("Pragma: no-cache");
header("Expires: 0");
if ($_SERVER['HTTP_USER_AGENT'] != variable_get('nagios_ua', 'Nagios')) {
switch (variable_get('prod_check_nagios_unique', 'default')) {
case '404':
drupal_not_found();
break;
case 'home':
drupal_goto('<front>');
break;
default:
nagios_status_page();
}
}
else {
nagios_status_page();
}
}