diff --git a/inc/shinken.class.php b/inc/shinken.class.php index 38f4b7c2..578871b3 100644 --- a/inc/shinken.class.php +++ b/inc/shinken.class.php @@ -131,6 +131,8 @@ class PluginMonitoringShinken extends CommonDBTM { 'low_flap_threshold' => '25', 'high_flap_threshold' => '50', + 'stalking_options' => '', + 'failure_prediction_enabled' => '0', 'retain_status_information' => '0', 'retain_nonstatus_information' => '0', @@ -167,6 +169,8 @@ class PluginMonitoringShinken extends CommonDBTM { 'low_flap_threshold' => 25, 'high_flap_threshold' => 50, + 'stalking_options' => '', + 'failure_prediction_enabled' => 0, 'retain_status_information' => 0, 'retain_nonstatus_information' => 0, @@ -969,6 +973,7 @@ function generateHostsCfg($file=0, $tag='') { 'process_perf_data', 'flap_detection_enabled', 'flap_detection_options', + 'stalking_options', 'low_flap_threshold', 'high_flap_threshold', 'failure_prediction_enabled', @@ -2753,6 +2758,10 @@ function generateTemplatesCfg($file=0, $tag='') { '1', 'notifications_enabled', $a_servicetemplates[$i]); $a_servicetemplates[$i] = $this->add_value_type( '0', 'event_handler_enabled', $a_servicetemplates[$i]); + $a_servicetemplates[$i] = $this->add_value_type( + self::$shinkenParameters['shinken']['services']['stalking_options'], + 'stalking_options', $a_servicetemplates[$i]); + if (isset(self::$shinkenParameters['shinken']['services']['flap_detection_enabled'])) { $a_servicetemplates[$i] = $this->add_value_type( self::$shinkenParameters['shinken']['services']['flap_detection_enabled'],