Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Commit

Permalink
core: anonymize external command - add tests and config change #5689
Browse files Browse the repository at this point in the history
* Add file with config change description
* Satisfy tests

Refs: #5689
whatthecommit: avoid the cherries
  • Loading branch information
bb-Ricardo committed Feb 21, 2014
1 parent 92a285a commit 7bd1591
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
17 changes: 17 additions & 0 deletions sample-config/updates/icinga.cfg_added_1.10_to_1.11.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#################################################################
# These are newly ADDED config options for ICINGA.CFG only.
#
# NOTE: Update your existing configuration with those new ones,
# if needed. You are advised to do so, in order to get the
# full Icinga experience!
#################################################################


# LOG ANONYMIZED EXTERNAL COMMAND AUTHOR !!EXPERIMENTAL!!
# This option substitutes the user name on external commands with
# the string "<anon>" if the command gets logged. It is
# anonymized in log files only. This option was added to make
# icinga compliant with data retention laws on various countries.
# This option is disabled by default.

log_anonymized_external_command_author=0
1 change: 1 addition & 0 deletions t-tap/test_commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ command *global_host_event_handler_ptr;
int sync_state_information(void) {}
int log_passive_checks = DEFAULT_LOG_PASSIVE_CHECKS;
int log_external_commands = DEFAULT_LOG_EXTERNAL_COMMANDS;
int log_anonymized_external_command_author = DEFAULT_LOG_ANONYMIZED_EXTERNAL_COMMAND_AUTHOR;

time_t disable_notifications_expire_time = 0L;
//void enable_all_notifications() {}
Expand Down
1 change: 1 addition & 0 deletions t-tap/test_icinga_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ int log_event_handlers = DEFAULT_LOG_EVENT_HANDLERS;
int log_initial_states = DEFAULT_LOG_INITIAL_STATES;
int log_external_commands = DEFAULT_LOG_EXTERNAL_COMMANDS;
int log_passive_checks = DEFAULT_LOG_PASSIVE_CHECKS;
int log_anonymized_external_command_author = DEFAULT_LOG_ANONYMIZED_EXTERNAL_COMMAND_AUTHOR;

unsigned long logging_options = 0;
unsigned long syslog_options = 0;
Expand Down
1 change: 1 addition & 0 deletions t-tap/test_timeperiods.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ int log_event_handlers = DEFAULT_LOG_EVENT_HANDLERS;
int log_initial_states = DEFAULT_LOG_INITIAL_STATES;
int log_external_commands = DEFAULT_LOG_EXTERNAL_COMMANDS;
int log_passive_checks = DEFAULT_LOG_PASSIVE_CHECKS;
int log_anonymized_external_command_author = DEFAULT_LOG_ANONYMIZED_EXTERNAL_COMMAND_AUTHOR;

unsigned long logging_options = 0;
unsigned long syslog_options = 0;
Expand Down

0 comments on commit 7bd1591

Please sign in to comment.