### Eclipse Workspace Patch 1.0
#P kodamera
Index: sites/all/modules/nagios/nagios.module
===================================================================
--- sites/all/modules/nagios/nagios.module	(revision 263)
+++ sites/all/modules/nagios/nagios.module	(working copy)
@@ -135,7 +135,7 @@
       ),
     );
   }
-
+  
   if (!$skip_invoke) {
     // Not authorized, so skipping calling other modules
     $nagios_data = nagios_invoke_all('nagios');
@@ -143,10 +143,13 @@
 
   // Find the highest level to be the overall status
   $severity = NAGIOS_STATUS_OK;
-
+  $min_severity = variable_get('nagios_min_report_severity', NAGIOS_STATUS_WARNING);
+  
   foreach($nagios_data as $module_name => $module_data) {
     foreach($module_data as $key => $value) {
-      $severity = max($severity, $value['status']);
+      if($value['status'] >= $min_severity) {
+        $severity = max($severity, $value['status']);
+      } 
     }
   }
 
@@ -160,7 +163,13 @@
     foreach($module_data as $key => $value) {
       switch($value['type']) {
         case 'state':
-          $tmp_state = $key . ':' . $codes[$value['status']];
+          // If status is larger then minimum severity
+          if($value['status'] >= $min_severity) {
+            $tmp_state = $key . ':' . $codes[$value['status']];
+          } else {
+            $tmp_state = $key . ':' . $codes[NAGIOS_STATUS_OK];
+          }  
+         
           if (!empty($value['text'])) {
             $tmp_state .= '=' . $value['text'];
           }
@@ -239,6 +248,14 @@
     '#description'   => t('Issue a critical alert when cron has not been running for this duration (in minutes). Default is 60 minutes.')
   );
 
+  $form[$group]['nagios_min_report_severity'] = array(
+    '#type'          => 'select',
+    '#title'         => t('Mininum report severity'),
+    '#default_value' => variable_get('nagios_min_report_severity', NAGIOS_STATUS_WARNING),
+    '#options'         => nagios_status(),
+    '#description'   => t('Issue a critical alert when cron has not been running for this duration (in minutes). Default is 60 minutes.')
+  );
+ 
   return $form;
 }
 
