Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Add default stalking_option
Browse files Browse the repository at this point in the history
  • Loading branch information
mohierf committed Sep 3, 2015
1 parent e784142 commit 6e400e2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions inc/shinken.class.php
Expand Up @@ -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',
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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'],
Expand Down

0 comments on commit 6e400e2

Please sign in to comment.